Module jdk.net
Package jdk.net

Class ExtendedSocketOptions


  • public final class ExtendedSocketOptions
    extends Object
    Defines extended socket options, beyond those defined in StandardSocketOptions. These options may be platform specific.
    Since:
    1.8
    • Field Detail

      • SO_FLOW_SLA

        public static final SocketOption<SocketFlow> SO_FLOW_SLA
        Service level properties. When a security manager is installed, setting or getting this option requires a NetworkPermission ("setOption.SO_FLOW_SLA") or "getOption.SO_FLOW_SLA" respectively.
      • TCP_QUICKACK

        public static final SocketOption<Boolean> TCP_QUICKACK
        Disable Delayed Acknowledgements.

        This socket option can be used to reduce or disable delayed acknowledgments (ACKs). When TCP_QUICKACK is enabled, ACKs are sent immediately, rather than delayed if needed in accordance to normal TCP operation. This option is not permanent, it only enables a switch to or from TCP_QUICKACK mode. Subsequent operations of the TCP protocol will once again disable/enable TCP_QUICKACK mode depending on internal protocol processing and factors such as delayed ACK timeouts occurring and data transfer, therefore this option needs to be set with setOption after each operation of TCP on a given socket.

        The value of this socket option is a Boolean that represents whether the option is enabled or disabled. The socket option is specific to stream-oriented sockets using the TCP/IP protocol. The exact semantics of this socket option are socket type and system dependent.

        Since:
        10