| 528 | } |
| 529 | |
| 530 | std::shared_ptr<DatagramSession::Info> DatagramDestination::GetInfoForRemote(const i2p::data::IdentHash & remote) |
| 531 | { |
| 532 | std::lock_guard<std::mutex> lock(m_SessionsMutex); |
| 533 | for ( auto & item : m_Sessions) |
| 534 | { |
| 535 | if(item.first == remote) return std::make_shared<DatagramSession::Info>(item.second->GetSessionInfo()); |
| 536 | } |
| 537 | return nullptr; |
| 538 | } |
| 539 | |
| 540 | DatagramSession::DatagramSession(std::shared_ptr<i2p::client::ClientDestination> localDestination, |
| 541 | const i2p::data::IdentHash & remoteIdent) : |
no test coverage detected