mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
implement SSU2HolPunchSession
This commit is contained in:
parent
ec1f41b13c
commit
97fdedfbe3
5 changed files with 88 additions and 49 deletions
|
@ -51,6 +51,21 @@ namespace transport
|
|||
std::vector<uint8_t> m_SignedData; // for resends
|
||||
boost::asio::deadline_timer m_PeerTestResendTimer;
|
||||
};
|
||||
|
||||
class SSU2HolePunchSession: public SSU2Session // Charlie
|
||||
{
|
||||
public:
|
||||
|
||||
SSU2HolePunchSession (SSU2Server& server, uint32_t nonce, const boost::asio::ip::udp::endpoint& remoteEndpoint,
|
||||
std::shared_ptr<const i2p::data::RouterInfo::Address> localAddr);
|
||||
|
||||
void SendHolePunch ();
|
||||
|
||||
private:
|
||||
|
||||
uint32_t m_Nonce;
|
||||
uint64_t m_Token; // for RelayResponse block
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue