KSocket
A coroutine-based socket implementation using AsynchronousSocketChannel.
Blocking - Though the underlying nio implementation is non-blocking, some operations may block briefly. In most cases this will be negligible. It's important to note the underlying does not set the dispatcher for operations. It is up to the user to decide the appropriate dispatcher.
Inheritors
Functions
Binds the socket to a local address. If the address is null, then the system will pick up an ephemeral port and a valid local address to bind the socket.
Connects this channel.
Gets the underlying AsynchronousSocketChannel.
Gets the remote InetAddress.
Gets the input stream of the socket.
Gets the SO_KEEPALIVE option.
Gets the local InetAddress.
Gets the local port number.
Gets the local socket address.
Gets the output stream of the socket.
Gets the read timeout.
Gets the SO_RCVBUF option.
Gets the remote socket address.
Gets the SO_REUSEADDR option.
Gets the SO_SNDBUF option.
Gets the SO_LINGER option.
Gets the TCP_NODELAY option.
Gets the write timeout.
Checks if the socket is connected.
Checks if the input is shutdown.
Checks if the output is shutdown.
Sets the SO_KEEPALIVE option.
Sets the read timeout.
Sets the SO_RCVBUF option.
Sets the SO_REUSEADDR option.
Sets the SO_SNDBUF option.
Sets the TCP_NODELAY option.
Sets the write timeout.
Shuts down the input side of the socket.
Shuts down the output side of the socket.