impement UDP associate in SOCKS proxy

This commit is contained in:
orignal 2025-10-26 18:39:53 -04:00
parent ab6dbe620c
commit 689a35c142
2 changed files with 66 additions and 19 deletions

View file

@ -147,7 +147,6 @@ namespace client
std::vector<std::shared_ptr<DatagramSessionInfo> > GetSessions ();
bool IsLocalDestination (const i2p::data::IdentHash & destination) const { return destination == m_LocalDest->GetIdentHash(); }
std::shared_ptr<ClientDestination> GetLocalDestination () const { return m_LocalDest; }
inline void SetLocalDestination (std::shared_ptr<ClientDestination> dest)
{
@ -155,7 +154,8 @@ namespace client
if (dest) dest->Acquire ();
m_LocalDest = dest;
}
const boost::asio::ip::udp::endpoint& GetLocalEndpoint () const { return m_LocalEndpoint; };
void ExpireStale (const uint64_t delta=I2P_UDP_SESSION_TIMEOUT);
private: