SocketOptions (Java SE 25 & JDK 25)
- All Known Implementing Classes:
DatagramSocketImpl, SocketImpl
-
Field Summary
Fields
static final intstatic final intThis option is used to both set and fetch the outgoing interface on which the multicast packets are sent.
static final intstatic final intstatic final intFetch the local address binding of a socket.
static final intstatic final intstatic final intstatic final intWhen this option is set, any TCP urgent data received on the socket will be received through the socket input stream.
static final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
getOption(int optID) Fetch the value of an option.
voidEnable/disable the option specified by
optID.
-
Field Details
-
TCP_NODELAY
-
SO_BINDADDR
-
SO_REUSEADDR
-
SO_REUSEPORT
-
SO_BROADCAST
-
IP_MULTICAST_IF
-
IP_MULTICAST_IF2
-
IP_MULTICAST_LOOP
-
IP_TOS
-
SO_LINGER
-
SO_TIMEOUT
-
SO_SNDBUF
-
SO_RCVBUF
-
SO_KEEPALIVE
-
SO_OOBINLINE
-
-
Method Details
-
setOption
-
getOption
-