The blocking operations supported by this channel.
The blocking operations supported by this channel.
The non-blocking operations supported by this channel.
The non-blocking operations supported by this channel.
Binds this channel's underlying socket to the given local address.
Binds this channel's underlying socket to the given local address. Passing None
binds to an automatically
assigned local address.
the local address
the datagram channel bound to the local address
Closes this channel.
Closes this channel.
Disconnects this channel's underlying socket.
Puts this channel in blocking mode (if applicable) and performs a set of blocking operations.
Puts this channel in blocking mode (if applicable) and performs a set of blocking operations. Uses the standard ZIO
Blocking
service to run the provided effect on the blocking thread pool. Installs interrupt handling so that if
the ZIO fiber is interrupted, this channel will be closed, which will unblock any currently blocked operations.
Given a BlockingOps
argument appropriate for this channel type, produces an effect value containing blocking
operations.
Puts this channel into non-blocking mode and performs a set of non-blocking operations.
Puts this channel into non-blocking mode and performs a set of non-blocking operations.
Uses the NonBlockingOps
appropriate for this channel type to produce non-blocking effects.
Tells whether this channel's underlying socket is both open and connected.
Tells whether this channel's underlying socket is both open and connected.
true
when the socket is both open and connected, otherwise false
Tells whether or not this channel is open.
Tells whether or not this channel is open.
Optionally returns the socket address that this channel's underlying socket is bound to.
Optionally returns the socket address that this channel's underlying socket is bound to.
the local address if the socket is bound, otherwise None
Registers this channel with the given selector, returning a selection key.
Registers this channel with the given selector, returning a selection key.
The selector to register with.
The key's interest set will be created with these operations.
The object to attach to the key, if any.
The new SelectionKey
.
Optionally returns the remote socket address that this channel's underlying socket is connected to.
Optionally returns the remote socket address that this channel's underlying socket is connected to.
the remote address if the socket is connected, otherwise None
Sets the value of the given socket option.
Sets the value of the given socket option.
the socket option to be set
the value to be set
Returns a reference to this channel's underlying datagram socket.
Returns a reference to this channel's underlying datagram socket.
the underlying datagram socket
A java.nio.channels.DatagramChannel wrapper allowing for basic zio.ZIO interoperability.