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

Method GetRandomRouter

libi2pd/NetDb.cpp:1143–1150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1141 }
1142
1143 std::shared_ptr<const RouterInfo> NetDb::GetRandomRouter () const
1144 {
1145 return GetRandomRouter (
1146 [](std::shared_ptr<const RouterInfo> router)->bool
1147 {
1148 return !router->IsHidden ();
1149 });
1150 }
1151
1152 std::shared_ptr<const RouterInfo> NetDb::GetRandomRouter (std::shared_ptr<const RouterInfo> compatibleWith,
1153 bool reverse, bool endpoint, bool clientTunnel) const

Callers 3

SelectNextHopMethod · 0.80
ManageOutboundTunnelsMethod · 0.80
ManageInboundTunnelsMethod · 0.80

Calls 15

GetUptimeMethod · 0.80
IsReachableFromMethod · 0.80
IsNAT2NATOnlyMethod · 0.80
IsECIESMethod · 0.80
IsHighCongestionMethod · 0.80
IsCheckReservedMethod · 0.80
IsSameFamilyMethod · 0.80
IsRealMethod · 0.80
GetProfileMethod · 0.80
IsPublishedMethod · 0.80

Tested by

no test coverage detected