|
|
@ -255,6 +255,7 @@ namespace transport |
|
|
|
|
|
|
|
|
|
|
|
void AddSession (std::shared_ptr<SSU2Session> session); |
|
|
|
void AddSession (std::shared_ptr<SSU2Session> session); |
|
|
|
void RemoveSession (uint64_t connID); |
|
|
|
void RemoveSession (uint64_t connID); |
|
|
|
|
|
|
|
void AddSessionByRouterHash (std::shared_ptr<SSU2Session> session); |
|
|
|
void AddPendingOutgoingSession (std::shared_ptr<SSU2Session> session); |
|
|
|
void AddPendingOutgoingSession (std::shared_ptr<SSU2Session> session); |
|
|
|
|
|
|
|
|
|
|
|
void AddRelay (uint32_t tag, std::shared_ptr<SSU2Session> relay); |
|
|
|
void AddRelay (uint32_t tag, std::shared_ptr<SSU2Session> relay); |
|
|
@ -295,6 +296,7 @@ namespace transport |
|
|
|
ReceiveService m_ReceiveService; |
|
|
|
ReceiveService m_ReceiveService; |
|
|
|
boost::asio::ip::udp::socket m_SocketV4, m_SocketV6; |
|
|
|
boost::asio::ip::udp::socket m_SocketV4, m_SocketV6; |
|
|
|
std::unordered_map<uint64_t, std::shared_ptr<SSU2Session> > m_Sessions; |
|
|
|
std::unordered_map<uint64_t, std::shared_ptr<SSU2Session> > m_Sessions; |
|
|
|
|
|
|
|
std::map<i2p::data::IdentHash, std::shared_ptr<SSU2Session> > m_SessionsByRouterHash; |
|
|
|
std::map<boost::asio::ip::udp::endpoint, std::shared_ptr<SSU2Session> > m_PendingOutgoingSessions; |
|
|
|
std::map<boost::asio::ip::udp::endpoint, std::shared_ptr<SSU2Session> > m_PendingOutgoingSessions; |
|
|
|
std::map<boost::asio::ip::udp::endpoint, std::pair<uint64_t, uint32_t> > m_IncomingTokens, m_OutgoingTokens; // remote endpoint -> (token, expires in seconds)
|
|
|
|
std::map<boost::asio::ip::udp::endpoint, std::pair<uint64_t, uint32_t> > m_IncomingTokens, m_OutgoingTokens; // remote endpoint -> (token, expires in seconds)
|
|
|
|
std::map<uint32_t, std::shared_ptr<SSU2Session> > m_Relays; // we are introducer, relay tag -> session
|
|
|
|
std::map<uint32_t, std::shared_ptr<SSU2Session> > m_Relays; // we are introducer, relay tag -> session
|
|
|
|