MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetNetwork

Method GetNetwork

src/netaddress.cpp:524–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524enum Network CNetAddr::GetNetwork() const
525{
526 if (IsInternal())
527 return NET_INTERNAL;
528
529 if (!IsRoutable())
530 return NET_UNROUTABLE;
531
532 return m_net;
533}
534
535static std::string IPv4ToString(Span<const uint8_t> a)
536{

Callers 9

GetExtNetworkFunction · 0.80
GetDefaultPortMethod · 0.80
IsPeerAddrLocalGoodFunction · 0.80
IsReachableFunction · 0.80
ConnectNodeMethod · 0.80
GetAddressesMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
operator==Method · 0.80
FUZZ_TARGETFunction · 0.80

Calls

no outgoing calls

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
operator==Method · 0.64
FUZZ_TARGETFunction · 0.64