Function Address.isMulticast

Determines whether this address' destination is a group of endpoints.

bool isMulticast() pure nothrow @nogc @safe const;

Returns

true if this is a multicast address, false otherwise.

See Also

Address4.isMulticast, Address6.isMulticast.

Example

assert(Address(address4("224.0.0.3").get).isMulticast());
assert(Address(address6("ff00::").get).isMulticast());