Endpoint.multicast constructor

Endpoint.multicast(
  1. InternetAddress? _address, {
  2. Port port = Port.any,
})

Creates a Multicast endpoint.

_address should be a valid Multicast address in the range 224.0.0.0 to 239.255.255.255.

port represents the port the endpoint is bound to.

A UDP instance can bind to a Endpoint.multicast endpoint only as a receiver. As a sender, a UDP instance can send data to Endpoint.multicast endpoints.

Implementation

Endpoint.multicast(this._address, {Port port = Port.any}) {
  _port = port;
  _isMulticast = true;
}