An asynchronous channel for reading, writing, and manipulating an UDP socket.
On the JVM this is a wrapper around java.nio.channels.DatagramChannel
- Companion
- object
Value members
Abstract methods
Binds the channel's socket to a local address
Binds the channel's socket to a local address
- Value Params
- local
the local address to bind the socket, or null to bind to an automatically assigned socket address
Asks the socket address that this channel's socket is bound to
Asks the socket address that this channel's socket is bound to
Receives a packet via this channel. If a datagram is not available after the timeout then this method returns scala.None.
Receives a packet via this channel. If a datagram is not available after the timeout then this method returns scala.None.
- Value Params
- maxSize
if the value is smaller than the size required to hold the datagram, then the remainder of the datagram is silently discarded.
- timeout
the receive timeout
- Returns
the packet, or scala.None if no datagram was available before timeout