MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetNetworkName

Function GetNetworkName

src/netbase.cpp:114–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114std::string GetNetworkName(enum Network net)
115{
116 switch (net) {
117 case NET_UNROUTABLE: return "not_publicly_routable";
118 case NET_IPV4: return "ipv4";
119 case NET_IPV6: return "ipv6";
120 case NET_ONION: return "onion";
121 case NET_I2P: return "i2p";
122 case NET_CJDNS: return "cjdns";
123 case NET_INTERNAL: return "internal";
124 case NET_MAX: assert(false);
125 } // no default case, so the compiler can warn about missing cases
126
127 assert(false);
128}
129
130std::vector<std::string> GetNetworkNames(bool append_unroutable)
131{

Callers 7

GetNetworkNamesFunction · 0.85
ThreadOpenConnectionsMethod · 0.85
getpeerinfoFunction · 0.85
GetNetworksInfoFunction · 0.85
getnodeaddressesFunction · 0.85
getaddrmaninfoFunction · 0.85
AddrmanEntryToJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected