add RouterInfo block before RelayIntro

This commit is contained in:
orignal 2022-05-06 15:02:09 -04:00
parent c22ab7e1fc
commit 1a1871e8cd
2 changed files with 40 additions and 25 deletions

View file

@ -203,6 +203,7 @@ namespace transport
void HandleRelayResponse (const uint8_t * buf, size_t len);
size_t CreateAddressBlock (uint8_t * buf, size_t len, const boost::asio::ip::udp::endpoint& ep);
size_t CreateRouterInfoBlock (uint8_t * buf, size_t len, std::shared_ptr<const i2p::data::RouterInfo> r);
size_t CreateAckBlock (uint8_t * buf, size_t len);
size_t CreatePaddingBlock (uint8_t * buf, size_t len, size_t minSize = 0);
size_t CreateI2NPBlock (uint8_t * buf, size_t len, std::shared_ptr<I2NPMessage>&& msg);