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

Method isMulticast

MonaBase/sources/IPAddress.cpp:235–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 words[4] == 0 && words[5] == 0 && words[6] == 0 && ntohs(words[7]) == 0x0001;
234 }
235 bool isMulticast() const {
236 const UInt16* words = reinterpret_cast<const UInt16*>(&_addr);
237 return (ntohs(words[0]) & 0xFFE0) == 0xFF00;
238 }
239 bool isLinkLocal() const {
240 const UInt16* words = reinterpret_cast<const UInt16*>(&_addr);
241 return (ntohs(words[0]) & 0xFFE0) == 0xFE80;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected