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

Method IsBindAny

src/netaddress.cpp:310–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310bool CNetAddr::IsBindAny() const
311{
312 if (!IsIPv4() && !IsIPv6()) {
313 return false;
314 }
315 return std::all_of(m_addr.begin(), m_addr.end(), [](uint8_t b) { return b == 0; });
316}
317
318bool CNetAddr::IsIPv4() const { return m_net == NET_IPV4; }
319

Callers 3

HTTPBindAddressesFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGETFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGETFunction · 0.64