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

Method GetNetwork

src/netaddress.cpp:236–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236enum Network CNetAddr::GetNetwork() const
237{
238 if (IsInternal())
239 return NET_INTERNAL;
240
241 if (!IsRoutable())
242 return NET_UNROUTABLE;
243
244 if (IsIPv4())
245 return NET_IPV4;
246
247 if (IsTor())
248 return NET_ONION;
249
250 return NET_IPV6;
251}
252
253std::string CNetAddr::ToStringIP() const
254{

Callers 6

GetExtNetworkFunction · 0.80
IsPeerAddrLocalGoodFunction · 0.80
IsLimitedFunction · 0.80
IsReachableFunction · 0.80
ConnectNodeMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64