MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / mask

Method mask

MonaBase/sources/IPAddress.cpp:461–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461bool IPAddress::mask(Exception& ex, const IPAddress& mask, const IPAddress& set) {
462 ASSERT_RETURN(family() == IPAddress::IPv4 && mask.family() == IPAddress::IPv4 && set.family() == IPAddress::IPv4,false);
463 _pIPAddress.reset(new IPv4Address(*(const in_addr*)_pIPAddress->addr(),*(const in_addr*)mask.addr(),*(const in_addr*)set.addr()));
464 return true;
465}
466
467IPAddress::Family IPAddress::family() const {
468 return _pIPAddress->family();

Callers

nothing calls this directly

Calls 3

familyMethod · 0.45
resetMethod · 0.45
addrMethod · 0.45

Tested by

no test coverage detected