Endpoint.any constructor
Endpoint.any({
- dynamic port = Port.any,
Creates a random Endpoint.
port
represents the port the endpoint is bound to.
The OS will choose an appropriate InternetAddress and Port. A UDP instance can bind to a Endpoint.any endpoint as a sender or as a receiver. As a sender, a UDP instance can send data to Endpoint.any endpoints.
Implementation
Endpoint.any({port = Port.any}) {
_address = InternetAddress.anyIPv4;
_port = port;
}