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

Method FindSessionByIdentHash

libi2pd_client/I2CP.cpp:1219–1231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1217 }
1218
1219 std::shared_ptr<I2CPSession> I2CPServer::FindSessionByIdentHash (const i2p::data::IdentHash& ident) const
1220 {
1221 for (const auto& it: m_Sessions)
1222 {
1223 if (it.second)
1224 {
1225 auto dest = it.second->GetDestination ();
1226 if (dest && dest->GetIdentHash () == ident)
1227 return it.second;
1228 }
1229 }
1230 return nullptr;
1231 }
1232}
1233}

Callers 1

Calls 1

GetDestinationMethod · 0.45

Tested by

no test coverage detected