mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated liteserver
- new methods for liteserver/liteclient - added ADNL/DHT client-only work mode - fixed crash in ADNL
This commit is contained in:
parent
acf16718e6
commit
53ec9684bd
70 changed files with 816 additions and 322 deletions
|
@ -132,6 +132,9 @@ class AdnlPacket {
|
|||
auto signature() const {
|
||||
return signature_.clone();
|
||||
}
|
||||
auto remote_addr() const {
|
||||
return remote_addr_;
|
||||
}
|
||||
|
||||
void init_random();
|
||||
|
||||
|
@ -188,6 +191,10 @@ class AdnlPacket {
|
|||
flags_ |= Flags::f_reinit_date;
|
||||
}
|
||||
|
||||
void set_remote_addr(td::IPAddress addr) {
|
||||
remote_addr_ = addr;
|
||||
}
|
||||
|
||||
private:
|
||||
td::BufferSlice rand1_;
|
||||
td::uint32 flags_{0};
|
||||
|
@ -204,6 +211,8 @@ class AdnlPacket {
|
|||
td::int32 dst_reinit_date_{0};
|
||||
td::BufferSlice signature_;
|
||||
td::BufferSlice rand2_;
|
||||
|
||||
td::IPAddress remote_addr_;
|
||||
};
|
||||
|
||||
} // namespace adnl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue