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

Method isWellKnownMC

MonaBase/sources/IPAddress.cpp:255–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253 return words[0] == 0 && words[1] == 0 && words[2] == 0 && words[3] == 0 && words[4] == 0 && ntohs(words[5]) == 0xFFFF;
254 }
255 bool isWellKnownMC() const {
256 const UInt16* words = reinterpret_cast<const UInt16*>(&_addr);
257 return (ntohs(words[0]) & 0xFFF0) == 0xFF00;
258 }
259 bool isNodeLocalMC() const {
260 const UInt16* words = reinterpret_cast<const UInt16*>(&_addr);
261 return (ntohs(words[0]) & 0xFFEF) == 0xFF01;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected