Uses of Interface
java.net.SocketOption
-
Packages that use SocketOption 软件包 描述 com.sun.nio.sctp 用于流控制传输协议的Java API。java.net 提供实现网络应用程序的类。java.nio.channels 定义通道,表示与能够执行I / O操作的实体的连接,例如文件和套接字; 定义选择器,用于多路复用,非阻塞I / O操作。jdk.net java.net
和java.nio.channels
套接字类的特定于平台的套接字选项。 -
-
Uses of SocketOption in com.sun.nio.sctp
Subinterfaces of SocketOption in com.sun.nio.sctp 变量和类型 接口 描述 interface
SctpSocketOption<T>
与SCTP通道关联的套接字选项。 -
Uses of SocketOption in java.net
Fields in java.net declared as SocketOption 变量和类型 字段 描述 static SocketOption<NetworkInterface>
StandardSocketOptions. IP_MULTICAST_IF
Internet协议(IP)多播数据报的网络接口。static SocketOption<Boolean>
StandardSocketOptions. IP_MULTICAST_LOOP
Internet协议(IP)多播数据报的环回。static SocketOption<Integer>
StandardSocketOptions. IP_MULTICAST_TTL
Internet协议(IP)多播数据报 的生存时间 。static SocketOption<Integer>
StandardSocketOptions. IP_TOS
Internet协议(IP)标头中的服务类型(ToS)八位字节。static SocketOption<Boolean>
StandardSocketOptions. SO_BROADCAST
允许传输广播数据报。static SocketOption<Boolean>
StandardSocketOptions. SO_KEEPALIVE
保持连接活着。static SocketOption<Integer>
StandardSocketOptions. SO_LINGER
如果数据存在,则关闭。static SocketOption<Integer>
StandardSocketOptions. SO_RCVBUF
套接字接收缓冲区的大小。static SocketOption<Boolean>
StandardSocketOptions. SO_REUSEADDR
重复使用地址。static SocketOption<Boolean>
StandardSocketOptions. SO_REUSEPORT
重用端口。static SocketOption<Integer>
StandardSocketOptions. SO_SNDBUF
套接字发送缓冲区的大小。static SocketOption<Boolean>
StandardSocketOptions. TCP_NODELAY
禁用Nagle算法。Methods in java.net that return types with arguments of type SocketOption 变量和类型 方法 描述 Set<SocketOption<?>>
DatagramSocket. supportedOptions()
返回此套接字支持的一组套接字选项。protected Set<SocketOption<?>>
DatagramSocketImpl. supportedOptions()
返回此impl支持的一组SocketOptions以及此impl的套接字(DatagramSocket或MulticastSocket)Set<SocketOption<?>>
ServerSocket. supportedOptions()
返回此服务器套接字支持的一组套接字选项。Set<SocketOption<?>>
Socket. supportedOptions()
返回此套接字支持的一组套接字选项。protected Set<SocketOption<?>>
SocketImpl. supportedOptions()
返回此impl支持的一组SocketOptions以及此impl的套接字(Socket或ServerSocket)Methods in java.net with parameters of type SocketOption 变量和类型 方法 描述 <T> T
DatagramSocket. getOption(SocketOption<T> name)
返回套接字选项的值。protected <T> T
DatagramSocketImpl. getOption(SocketOption<T> name)
被叫获得套接字选项。<T> T
ServerSocket. getOption(SocketOption<T> name)
返回套接字选项的值。<T> T
Socket. getOption(SocketOption<T> name)
返回套接字选项的值。protected <T> T
SocketImpl. getOption(SocketOption<T> name)
被叫获得套接字选项。<T> DatagramSocket
DatagramSocket. setOption(SocketOption<T> name, T value)
设置套接字选项的值。protected <T> void
DatagramSocketImpl. setOption(SocketOption<T> name, T value)
被调用来设置套接字选项。<T> ServerSocket
ServerSocket. setOption(SocketOption<T> name, T value)
设置套接字选项的值。<T> Socket
Socket. setOption(SocketOption<T> name, T value)
设置套接字选项的值。protected <T> void
SocketImpl. setOption(SocketOption<T> name, T value)
被调用来设置套接字选项。 -
Uses of SocketOption in java.nio.channels
Methods in java.nio.channels that return types with arguments of type SocketOption 变量和类型 方法 描述 Set<SocketOption<?>>
NetworkChannel. supportedOptions()
返回此通道支持的一组套接字选项。Methods in java.nio.channels with parameters of type SocketOption 变量和类型 方法 描述 <T> T
NetworkChannel. getOption(SocketOption<T> name)
返回套接字选项的值。abstract <T> AsynchronousServerSocketChannel
AsynchronousServerSocketChannel. setOption(SocketOption<T> name, T value)
abstract <T> AsynchronousSocketChannel
AsynchronousSocketChannel. setOption(SocketOption<T> name, T value)
abstract <T> DatagramChannel
DatagramChannel. setOption(SocketOption<T> name, T value)
<T> NetworkChannel
NetworkChannel. setOption(SocketOption<T> name, T value)
设置套接字选项的值。abstract <T> ServerSocketChannel
ServerSocketChannel. setOption(SocketOption<T> name, T value)
abstract <T> SocketChannel
SocketChannel. setOption(SocketOption<T> name, T value)
-
Uses of SocketOption in jdk.net
Fields in jdk.net declared as SocketOption 变量和类型 字段 描述 static SocketOption<SocketFlow>
ExtendedSocketOptions. SO_FLOW_SLA
服务级别属性。static SocketOption<Integer>
ExtendedSocketOptions. TCP_KEEPCOUNT
Keep-Alive重传最大限制。static SocketOption<Integer>
ExtendedSocketOptions. TCP_KEEPIDLE
保持空闲时间。static SocketOption<Integer>
ExtendedSocketOptions. TCP_KEEPINTERVAL
保持活动重传间隔时间。static SocketOption<Boolean>
ExtendedSocketOptions. TCP_QUICKACK
禁用延迟确认。Methods in jdk.net that return types with arguments of type SocketOption 变量和类型 方法 描述 static Set<SocketOption<?>>
Sockets. supportedOptions(类<?> socketType)
返回给定套接字类型支持的一组SocketOption
。Methods in jdk.net with parameters of type SocketOption 变量和类型 方法 描述 static <T> T
Sockets. getOption(DatagramSocket s, SocketOption<T> name)
从DatagramSocket
或MulticastSocket
返回套接字选项的值static <T> T
Sockets. getOption(ServerSocket s, SocketOption<T> name)
从ServerSocket
返回套接字选项的值static <T> T
Sockets. getOption(Socket s, SocketOption<T> name)
static <T> void
Sockets. setOption(DatagramSocket s, SocketOption<T> name, T value)
设置DatagramSocket
或MulticastSocket
上的套接字选项的值static <T> void
Sockets. setOption(ServerSocket s, SocketOption<T> name, T value)
设置ServerSocket
上套接字选项的值static <T> void
Sockets. setOption(Socket s, SocketOption<T> name, T value)
-