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

Function ShowHop

daemon/HTTPServer.cpp:470–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468 }
469
470 static void ShowHop(std::stringstream& s, const i2p::data::IdentityEx& ident)
471 {
472 auto identHash = ident.GetIdentHash();
473 auto router = i2p::data::netdb.FindRouter(identHash);
474 s << i2p::data::GetIdentHashAbbreviation(identHash);
475 if (router)
476 s << "<small style=\"color:gray\"> " << router->GetBandwidthCap() << "</small>";
477 }
478
479 static void ShowLeaseSetDestination (std::stringstream& s, std::shared_ptr<const i2p::client::LeaseSetDestination> dest, uint32_t token)
480 {

Callers 2

ShowLeaseSetDestinationFunction · 0.85
ShowTunnelsFunction · 0.85

Calls 3

GetIdentHashAbbreviationFunction · 0.85
FindRouterMethod · 0.80
GetBandwidthCapMethod · 0.80

Tested by

no test coverage detected