MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetNetworkName

Function GetNetworkName

src/netbase.cpp:65–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65std::string GetNetworkName(enum Network net)
66{
67 switch (net) {
68 case NET_IPV4:
69 return "ipv4";
70 case NET_IPV6:
71 return "ipv6";
72 case NET_TOR:
73 return "onion";
74 default:
75 return "";
76 }
77}
78
79void SplitHostPort(std::string in, int& portOut, std::string& hostOut)
80{

Callers 1

GetNetworksInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected