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

Method GetNetwork

src/netbase.cpp:829–841  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

827}
828
829enum Network CNetAddr::GetNetwork() const
830{
831 if (!IsRoutable())
832 return NET_UNROUTABLE;
833
834 if (IsIPv4())
835 return NET_IPV4;
836
837 if (IsTor())
838 return NET_TOR;
839
840 return NET_IPV6;
841}
842
843std::string CNetAddr::ToStringIP() const
844{

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