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

Function GetNetworkName

src/netbase.cpp:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58std::string GetNetworkName(enum Network net) {
59 switch(net)
60 {
61 case NET_IPV4: return "ipv4";
62 case NET_IPV6: return "ipv6";
63 case NET_TOR: return "onion";
64 default: return "";
65 }
66}
67
68void SplitHostPort(std::string in, int &portOut, std::string &hostOut) {
69 size_t colon = in.find_last_of(':');

Callers 1

GetNetworksInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected