MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / GetDatagramSession

Method GetDatagramSession

libi2pd_client/UDPTunnel.cpp:237–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235 }
236
237 std::shared_ptr<i2p::datagram::DatagramSession> UDPConnection::GetDatagramSession ()
238 {
239 auto session = m_LastDatagramSession.lock ();
240 if (!session && isIdentity)
241 {
242 session = m_Destination->GetSession (Identity);
243 m_LastDatagramSession = session;
244 }
245 return session;
246 }
247
248 UDPSession::UDPSession(boost::asio::ip::udp::endpoint localEndpoint,
249 const std::shared_ptr<i2p::client::ClientDestination> & localDestination,

Callers 1

HandleRecvFromI2PMethod · 0.80

Calls 1

GetSessionMethod · 0.45

Tested by

no test coverage detected