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 Modifier and Type 接口 描述 interface
SctpSocketOption<T>
与SCTP通道相关联的插座选项。 -
Uses of SocketOption in java.net
Fields in java.net declared as SocketOption Modifier and Type Field 描述 static SocketOption<NetworkInterface>
StandardSocketOptions. IP_MULTICAST_IF
互联网协议(IP)组播数据报的网络接口。static SocketOption<Boolean>
StandardSocketOptions. IP_MULTICAST_LOOP
互联网协议(IP)组播数据报的环回。static SocketOption<Integer>
StandardSocketOptions. IP_MULTICAST_TTL
互联网协议(IP)组播数据报 的生存时间 。static SocketOption<Integer>
StandardSocketOptions. IP_TOS
互联网协议(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 Modifier and Type 方法 描述 Set<SocketOption<?>>
DatagramSocket. supportedOptions()
返回此套接字支持的一组套接字选项。protected Set<SocketOption<?>>
DatagramSocketImpl. supportedOptions()
返回一个由此impl和该impl的套接字(DatagramSocket或MulticastSocket)支持的SocketOptions,Set<SocketOption<?>>
MulticastSocket. supportedOptions()
Set<SocketOption<?>>
ServerSocket. supportedOptions()
返回此服务器套接字支持的一组套接字选项。Set<SocketOption<?>>
Socket. supportedOptions()
返回此套接字支持的一组套接字选项。protected Set<SocketOption<?>>
SocketImpl. supportedOptions()
返回一个由此impl和该impl的套接字支持的SocketOptions(Socket或ServerSocket)Methods in java.net with parameters of type SocketOption Modifier and Type 方法 描述 <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 Modifier and Type 方法 描述 Set<SocketOption<?>>
NetworkChannel. supportedOptions()
返回此通道支持的一组套接字选项。Methods in java.nio.channels with parameters of type SocketOption Modifier and Type 方法 描述 <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 Modifier and Type Field 描述 static SocketOption<SocketFlow>
ExtendedSocketOptions. SO_FLOW_SLA
服务级属性。Methods in jdk.net that return types with arguments of type SocketOption Modifier and Type 方法 描述 static Set<SocketOption<?>>
Sockets. supportedOptions(Class<?> socketType)
返回给定套接字类型支持的一组SocketOption
。Methods in jdk.net with parameters of type SocketOption Modifier and Type 方法 描述 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)
Sets the value of a socket option on aSocket
-