use common cleanup timer for all SSU sessions

This commit is contained in:
orignal 2021-09-21 22:13:34 -04:00
parent 31bdce1f1f
commit 8debdc264c
5 changed files with 38 additions and 48 deletions

View file

@ -1004,6 +1004,12 @@ namespace transport
}
}
void SSUSession::CleanUp ()
{
m_Data.CleanUp ();
// TODO: clean up m_RelayRequests
}
void SSUSession::ProcessPeerTest (const uint8_t * buf, size_t len, const boost::asio::ip::udp::endpoint& senderEndpoint)
{
uint32_t nonce = bufbe32toh (buf); // 4 bytes