Block the given address for the given multicast address and notifies the once the operation completes.
Block the given address for the given multicast address and notifies the once the operation completes.
Block the given address for the given multicast address on the given network interface and notifies the once the operation completes.
Block the given address for the given multicast address on the given network interface and notifies the once the operation completes.
Closes the DatagramSocket implementation asynchronous and notifies the handler once done.
Closes the DatagramSocket implementation asynchronous and notifies the handler once done.
Whether the metrics are enabled for this measured object
Start listening on the given port and host. The handler will be called when the socket is listening.
Start listening on the given port and host. The handler will be called when the socket is listening.
Joins a multicast group and listens for packets send to it. The is notified once the operation completes.
Joins a multicast group and listens for packets send to it. The is notified once the operation completes.
Joins a multicast group and listens for packets send to it on the given network interface. The is notified once the operation completes.
Joins a multicast group and listens for packets send to it on the given network interface. The is notified once the operation completes.
Return the SocketAddress to which this DatagramSocket is bound.
Pause this stream and return a to transfer the elements of this stream to a destination .
The stream will be resumed when the pipe will be wired to aWriteStream
.
Pipe this ReadStream
to the WriteStream
.
Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the handler
will be
called with the result.
Pipe this ReadStream
to the WriteStream
.
Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the handler
will be
called with the result.
Write the given Buffer to the SocketAddress. The Handler will be notified once the write completes.
Write the given Buffer to the SocketAddress. The Handler will be notified once the write completes.
Write the given String to the SocketAddress using UTF8 encoding. The will be notified once the write completes.
Write the given String to the SocketAddress using UTF8 encoding. The will be notified once the write completes.
Write the given String to the SocketAddress using the given encoding. The will be notified once the write completes.
Write the given String to the SocketAddress using the given encoding. The will be notified once the write completes.
Returns a WriteStream
able to send to the
SocketAddress.
Leaves a multicast group and stops listening for packets send to it. The is notified once the operation completes.
Leaves a multicast group and stops listening for packets send to it. The is notified once the operation completes.
Leaves a multicast group and stops listening for packets send to it on the given network interface. The is notified once the operation completes.
Leaves a multicast group and stops listening for packets send to it on the given network interface. The is notified once the operation completes.
Generated using TypeDoc
A datagram socket can be used to send DatagramPacket's to remote datagram servers and receive DatagramPackets .
Usually you use a datagram socket to send UDP over the wire. UDP is connection-less which means you are not connected to the remote peer in a persistent way. Because of this you have to supply the address and port of the remote peer when sending data.
You can send data to ipv4 or ipv6 addresses, which also include multicast addresses.
Please consult the documentation for more information on datagram sockets.