The underlying AsyncSocketChannel
The underlying AsyncSocketChannel
Closes this channel
Connects this channel.
Connects this channel.
the remote address to which this channel is to be connected
Asks the socket address that this channel's socket is bound to
Reads a sequence of bytes from this channel into the given buffer
Reads a sequence of bytes from this channel into the given buffer
is the buffer holding the bytes read on completion
an optional maximum time for the I/O operation to complete
the number of bytes read or -1 if no bytes could be read because the channel has reached end-of-stream
Asks the remote address to which this channel's socket is connected
Indicates that this channel will not read more data
Indicates that this channel will not read more data
Indicates that this channel will not write more data
Indicates that this channel will not write more data
Writes a sequence of bytes to this channel from the given buffer
Writes a sequence of bytes to this channel from the given buffer
is the buffer holding the sequence of bytes to write
an optional maximum time for the I/O operation to complete
the number of bytes that were written
A
Task
based asynchronous channel for reading, writing, and manipulating a TCP socket.On the JVM this is a wrapper around java.nio.channels.AsynchronousSocketChannel (class available since Java 7 for doing async I/O on sockets).