Endpoint.unicast constructor
Endpoint.unicast(
- InternetAddress? _address, {
- Port port = Port.any,
Creates a Unicast endpoint.
_address
is the address to use for binding or sending.
port
represents the port the endpoint is bound to.
A UDP instance can bind to a Endpoint.unicast endpoint only if any of the network interfaces available is bound to the Endpoint.unicast endpoint's address. As a sender, a UDP instance can send data to Endpoint.unicast endpoints.
Implementation
Endpoint.unicast(this._address, {Port port = Port.any}) {
_port = port;
}