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

Method GetInfoForRemote

libi2pd/Datagram.cpp:530–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) :

Callers 1

GetSessionsMethod · 0.80

Calls 1

GetSessionInfoMethod · 0.80

Tested by

no test coverage detected