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

Method IsIPv4

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

Source from the content-addressed store, hash-verified

606uint32_t CNetAddr::GetByte(int32_t n) const { return ip[15 - n]; }
607
608bool CNetAddr::IsIPv4() const { return (memcmp(ip, pchIPv4, sizeof(pchIPv4)) == 0); }
609
610bool CNetAddr::IsIPv6() const { return (!IsIPv4() && !IsTor()); }
611

Callers 4

Socks4Function · 0.80
CSubNetMethod · 0.80
ToStringMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64