Code example for SocketChannel

Methods: isConnectedwriteclose