MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / GetNetwork

Method GetNetwork

src/netbase.cpp:706–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704}
705
706enum Network CNetAddr::GetNetwork() const {
707 if (!IsRoutable()) return NET_UNROUTABLE;
708
709 if (IsIPv4()) return NET_IPV4;
710
711 if (IsTor()) return NET_TOR;
712
713 return NET_IPV6;
714}
715
716string CNetAddr::ToStringIP() const {
717 if (IsTor())

Callers 6

ConnectSocketFunction · 0.80
GetExtNetworkFunction · 0.80
AddLocalFunction · 0.80
IsLimitedFunction · 0.80
IsReachableFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64