Uses of Class
java.nio.channels.SocketChannel
-
Packages that use SocketChannel 软件包 描述 java.net 提供实现网络应用程序的类。java.nio.channels 定义通道,其表示与能够执行I / O操作的实体的连接,例如文件和套接字; 定义选择器,用于多路复用,非阻塞I / O操作。java.nio.channels.spi java.nio.channels
包的服务提供者类。 -
-
Uses of SocketChannel in java.net
Methods in java.net that return SocketChannel Modifier and Type 方法 描述 SocketChannel
Socket. getChannel()
返回与此套接字相关联的唯一的SocketChannel
对象(如果有)。 -
Uses of SocketChannel in java.nio.channels
Methods in java.nio.channels that return SocketChannel Modifier and Type 方法 描述 abstract SocketChannel
ServerSocketChannel. accept()
接受与此频道套接字的连接。abstract SocketChannel
SocketChannel. bind(SocketAddress local)
static SocketChannel
SocketChannel. open()
打开套接字通道。static SocketChannel
SocketChannel. open(SocketAddress remote)
打开套接字通道并将其连接到远程地址。abstract <T> SocketChannel
SocketChannel. setOption(SocketOption<T> name, T value)
abstract SocketChannel
SocketChannel. shutdownInput()
关闭连接进行阅读,不关闭频道。abstract SocketChannel
SocketChannel. shutdownOutput()
关闭连接以进行写入,而不关闭通道。 -
Uses of SocketChannel in java.nio.channels.spi
Methods in java.nio.channels.spi that return SocketChannel Modifier and Type 方法 描述 abstract SocketChannel
SelectorProvider. openSocketChannel()
打开套接字通道。
-