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

Method FindRouter

libi2pd/NetDb.cpp:428–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426 }
427
428 std::shared_ptr<RouterInfo> NetDb::FindRouter (const IdentHash& ident) const
429 {
430 std::lock_guard<std::mutex> l(m_RouterInfosMutex);
431 auto it = m_RouterInfos.find (ident);
432 if (it != m_RouterInfos.end ())
433 return it->second;
434 else
435 return nullptr;
436 }
437
438 std::shared_ptr<LeaseSet> NetDb::FindLeaseSet (const IdentHash& destination) const
439 {

Callers 15

SendMsgMethod · 0.80
SelectPeersMethod · 0.80
ShowHopFunction · 0.80
SelectExplicitPeersMethod · 0.80
SelectTrustedRouterMethod · 0.80
ValidatePeersMethod · 0.80
PostMessagesMethod · 0.80
ConnectToPeerMethod · 0.80
PeerConnectedMethod · 0.80
PeerDisconnectedMethod · 0.80
GetRandomPeerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected