| 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, |
no test coverage detected