UDP class
UDP sends or receives UDP packets.
a UDP instance can send packets to or receive packets from Endpoints.
Properties
- closed → bool
-
Returns True if this UDP instance is closed.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- local → Endpoint
-
The Endpoint this UDP instance is bound to.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- socket → RawDatagramSocket?
-
Reference to underlying RawDatagramSocket.
no setter
Methods
-
asStream(
{Duration? timeout}) → Stream< Datagram?> - Tells the UDP instance to listen for incoming messages.
-
close(
) → void - Closes the UDP instance and the underlying socket.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
List< int> data, Endpoint remoteEndpoint) → Future<int> -
Sends some
data
to aremoteEndpoint
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited