SocketChannel « java.nio.channels « Java by API






1.SocketChannel: connect(SocketAddress remote) throws IOException
2.SocketChannel: read(ByteBuffer dst)
3.SocketChannel: write(ByteBuffer src)