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

Method GetNetwork

src/netbase.cpp:852–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850}
851
852enum Network CNetAddr::GetNetwork() const
853{
854 if (!IsRoutable())
855 return NET_UNROUTABLE;
856
857 if (IsIPv4())
858 return NET_IPV4;
859
860 if (IsTor())
861 return NET_TOR;
862
863 return NET_IPV6;
864}
865
866std::string CNetAddr::ToStringIP() const
867{

Callers 7

ConnectSocketFunction · 0.80
GetExtNetworkFunction · 0.80
IsPeerAddrLocalGoodFunction · 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