|
|
@ -297,6 +297,8 @@ namespace transport |
|
|
|
size_t CreatePaddingBlock (uint8_t * buf, size_t len, size_t minSize = 0); |
|
|
|
size_t CreatePaddingBlock (uint8_t * buf, size_t len, size_t minSize = 0); |
|
|
|
size_t CreatePeerTestBlock (uint8_t * buf, size_t len, uint8_t msg, SSU2PeerTestCode code, const uint8_t * routerHash, const uint8_t * signedData, size_t signedDataLen); |
|
|
|
size_t CreatePeerTestBlock (uint8_t * buf, size_t len, uint8_t msg, SSU2PeerTestCode code, const uint8_t * routerHash, const uint8_t * signedData, size_t signedDataLen); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool ExtractEndpoint (const uint8_t * buf, size_t size, boost::asio::ip::udp::endpoint& ep); |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
|
|
|
|
|
|
|
|
void Terminate (); |
|
|
|
void Terminate (); |
|
|
@ -328,8 +330,7 @@ namespace transport |
|
|
|
void HandleRouterInfo (const uint8_t * buf, size_t len); |
|
|
|
void HandleRouterInfo (const uint8_t * buf, size_t len); |
|
|
|
void HandleAck (const uint8_t * buf, size_t len); |
|
|
|
void HandleAck (const uint8_t * buf, size_t len); |
|
|
|
void HandleAckRange (uint32_t firstPacketNum, uint32_t lastPacketNum, uint64_t ts); |
|
|
|
void HandleAckRange (uint32_t firstPacketNum, uint32_t lastPacketNum, uint64_t ts); |
|
|
|
void HandleAddress (const uint8_t * buf, size_t len); |
|
|
|
virtual void HandleAddress (const uint8_t * buf, size_t len); |
|
|
|
bool ExtractEndpoint (const uint8_t * buf, size_t size, boost::asio::ip::udp::endpoint& ep); |
|
|
|
|
|
|
|
size_t CreateEndpoint (uint8_t * buf, size_t len, const boost::asio::ip::udp::endpoint& ep); |
|
|
|
size_t CreateEndpoint (uint8_t * buf, size_t len, const boost::asio::ip::udp::endpoint& ep); |
|
|
|
std::shared_ptr<const i2p::data::RouterInfo::Address> FindLocalAddress () const; |
|
|
|
std::shared_ptr<const i2p::data::RouterInfo::Address> FindLocalAddress () const; |
|
|
|
void AdjustMaxPayloadSize (); |
|
|
|
void AdjustMaxPayloadSize (); |
|
|
|