Endpoint class
Endpoint represents a destination for UDP packets.
Bundles an InternetAddress and a Port.
Constructors
- Endpoint.any({dynamic port = Port.any})
- Creates a random Endpoint.
- Endpoint.broadcast({Port port = Port.any})
- Creates a Broadcast endpoint.
- Endpoint.loopback({Port port = Port.any})
- Creates a Loopback endpoint bound to the address of the local machine (127.0.0.1).
- Endpoint.multicast(InternetAddress? _address, {Port port = Port.any})
- Creates a Multicast endpoint.
- Endpoint.unicast(InternetAddress? _address, {Port port = Port.any})
- Creates a Unicast endpoint.
Properties
- address → InternetAddress?
-
The address of this endpoint.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBroadcast → bool
-
Whether the endpoint is a broadcast endpoint.
no setter
- isMulticast → bool
-
Whether the endpoint is a multicast endpoint.
no setter
- port → Port?
-
The port of this endpoint.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited