Fields Summary |
---|
public static final int | SO_LINGERThis option specifies the behavior of the {@code close()} method if there
is still some buffered data to be sent while closing the socket. If the
value of this option is set to {@code 0} the method closes the TCP socket
forcefully and returns immediately. Is this value greater than {@code 0}
the method blocks this time in milliseconds. If all data could be sent
during this timeout the socket is closed normally otherwise forcefully.
Valid values for this option are in the range {@code 0 <= SO_LINGER <=
65535}. |
public static final int | SO_TIMEOUTTimeout for blocking operations. The argument value is specified in
milliseconds. An {@code InterruptedIOException} is thrown if this timeout
expires. |
public static final int | TCP_NODELAYThis option specifies whether data is sent immediately on this socket, as
a side-effect though, this could lead to a low packet efficiency. The
socket implementation uses the Nagle's algorithm to try to reach a higher
packet efficiency if this option is disabled. |
public static final int | IP_MULTICAST_IFThis option specifies the interface which is used to send multicast
packets. It's only available on a {@code MulticastSocket}. |
public static final int | SO_BINDADDRThis option can be used to set one specific interface on a multihomed
host on which incoming connections are accepted. It's only available on
server-side sockets. |
public static final int | SO_REUSEADDRThis option specifies whether a reuse of a local address is allowed even
if an other socket is not yet removed by the operating system. It's only
available on a {@code MulticastSocket}. |
public static final int | SO_SNDBUFBuffer size of the outgoing channel. |
public static final int | SO_RCVBUFBuffer size of the incoming channel. |
public static final int | SO_KEEPALIVEThis option specifies whether socket implementations can send keepalive
messages if no data has been sent for a longer time. |
public static final int | IP_TOSThis option specifies the value for the Type-of-Service (TOS) field of
the IP header. |
public static final int | IP_MULTICAST_LOOPThis option specifies whether the local loopback of multicast packets is
enabled or disabled. This option is enabled by default on multicast
sockets. |
public static final int | SO_BROADCASTThis option can be used to enable broadcasting on datagram sockets. |
public static final int | SO_OOBINLINEThis option specifies whether sending TCP urgent data is supported on
this socket or not. |
public static final int | IP_MULTICAST_IF2This option can be used to set one specific interface on a multihomed
host on which incoming connections are accepted. It's only available on
server-side sockets. This option supports setting outgoing interfaces
with either IPv4 or IPv6 addresses. |