java.net.StandardSocketOptions .
Extended socket options are accessed through the jdk.net API, which is in
the jdk.net module.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final Set | |
| private static volatile ExtendedSocketOptions | |
| private final Set | |
| private final Set | |
| public static final short | |
| public static final short | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static Set | clientSocketOptions()
Returns the (possibly empty) set of extended socket options for stream-oriented connecting sockets. |
| public static Set | datagramSocketOptions()
Returns the (possibly empty) set of extended socket options for datagram-oriented sockets. |
| public static ExtendedSocketOptions | |
| public abstract Object | getOption(FileDescriptor fd, SocketOption<?> option, boolean isIPv6)
Returns the value of a socket option, for the given socket. |
| private static boolean | |
| public final boolean | |
| private static boolean | |
| private static boolean | |
| public final Set | |
| private Set | |
| public static synchronized void | |
| public static Set | serverSocketOptions()
Returns the (possibly empty) set of extended socket options for stream-oriented listening sockets. |
| public abstract void | setOption(FileDescriptor fd, SocketOption<?> option, Object value, boolean isIPv6)
Sets the value of a socket option, for the given socket. |
| private final Set | unixDomainClientOptions()
Return the, possibly empty, set of extended socket options available for Unix domain client sockets. |
| public static Set |
| clientStreamOptions | back to summary |
|---|---|
| private final Set<SocketOption<?>> clientStreamOptions | |
| datagramOptions | back to summary |
|---|---|
| private final Set<SocketOption<?>> datagramOptions | |
| instance | back to summary |
|---|---|
| private static volatile ExtendedSocketOptions instance | |
| options | back to summary |
|---|---|
| private final Set<SocketOption<?>> options | |
| serverStreamOptions | back to summary |
|---|---|
| private final Set<SocketOption<?>> serverStreamOptions | |
| SOCK_DGRAM | back to summary |
|---|---|
| public static final short SOCK_DGRAM | |
| SOCK_STREAM | back to summary |
|---|---|
| public static final short SOCK_STREAM | |
| unixDomainClientOptions | back to summary |
|---|---|
| private final Set<SocketOption<?>> unixDomainClientOptions | |
| ExtendedSocketOptions | back to summary |
|---|---|
| protected ExtendedSocketOptions(Set<SocketOption<?>> options) | |
| clientSocketOptions | back to summary |
|---|---|
| public static Set Returns the (possibly empty) set of extended socket options for stream-oriented connecting sockets. | |
| datagramSocketOptions | back to summary |
|---|---|
| public static Set Returns the (possibly empty) set of extended socket options for datagram-oriented sockets. | |
| getInstance | back to summary |
|---|---|
| public static ExtendedSocketOptions getInstance() | |
| getOption | back to summary |
|---|---|
| public abstract Object getOption(FileDescriptor fd, SocketOption<?> option, boolean isIPv6) throws SocketException Returns the value of a socket option, for the given socket. | |
| isDatagramOption | back to summary |
|---|---|
| private static boolean isDatagramOption(SocketOption<?> option) | |
| isOptionSupported | back to summary |
|---|---|
| public final boolean isOptionSupported(SocketOption<?> option) Tells whether or not the option is supported. | |
| isStreamOption | back to summary |
|---|---|
| private static boolean isStreamOption(SocketOption<?> option, boolean server) | |
| isUnixDomainOption | back to summary |
|---|---|
| private static boolean isUnixDomainOption(SocketOption<?> option) | |
| options | back to summary |
|---|---|
| public final Set Return the, possibly empty, set of extended socket options available. | |
| options0 | back to summary |
|---|---|
| private Set | |
| register | back to summary |
|---|---|
| public static synchronized void register(ExtendedSocketOptions extOptions) Registers support for extended socket options. Invoked by the jdk.net module. | |
| serverSocketOptions | back to summary |
|---|---|
| public static Set Returns the (possibly empty) set of extended socket options for stream-oriented listening sockets. | |
| setOption | back to summary |
|---|---|
| public abstract void setOption(FileDescriptor fd, SocketOption<?> option, Object value, boolean isIPv6) throws SocketException Sets the value of a socket option, for the given socket. | |
| unixDomainClientOptions | back to summary |
|---|---|
| private final Set Return the, possibly empty, set of extended socket options available for Unix domain client sockets. Note, there are no extended Unix domain server options. | |
| unixDomainSocketOptions | back to summary |
|---|---|
| public static Set | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getOption(FileDescriptor fd, SocketOption<?> option, boolean isIPv6)
Implements abstract sun. Returns the value of a socket option, for the given socket. |
| public void | setOption(FileDescriptor fd, SocketOption<?> option, Object value, boolean isIPv6)
Implements abstract sun. Sets the value of a socket option, for the given socket. |
| NoExtendedSocketOptions | back to summary |
|---|---|
| pack-priv NoExtendedSocketOptions() | |
| getOption | back to summary |
|---|---|
| public Object getOption(FileDescriptor fd, SocketOption<?> option, boolean isIPv6) throws SocketException Implements abstract sun. Doc from sun. Returns the value of a socket option, for the given socket.
| |
| setOption | back to summary |
|---|---|
| public void setOption(FileDescriptor fd, SocketOption<?> option, Object value, boolean isIPv6) throws SocketException Implements abstract sun. Doc from sun. Sets the value of a socket option, for the given socket.
| |