public enum SocketOption extends Enum<SocketOption> implements Constant
Enum Constant and Description |
---|
SO_ACCEPTCONN |
SO_ATTACH_FILTER |
SO_BROADCAST |
SO_DEBUG |
SO_DETACH_FILTER |
SO_DONTROUTE |
SO_ERROR |
SO_KEEPALIVE |
SO_LINGER |
SO_OOBINLINE |
SO_RCVBUF |
SO_RCVLOWAT |
SO_RCVTIMEO |
SO_REUSEADDR |
SO_REUSEPORT |
SO_SNDBUF |
SO_SNDLOWAT |
SO_SNDTIMEO |
SO_TIMESTAMP |
SO_TYPE |
SO_USELOOPBACK |
Modifier and Type | Field and Description |
---|---|
static long |
MAX_VALUE |
static long |
MIN_VALUE |
Modifier and Type | Method and Description |
---|---|
boolean |
defined() |
int |
intValue() |
long |
longValue() |
static SocketOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocketOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocketOption SO_DEBUG
public static final SocketOption SO_ACCEPTCONN
public static final SocketOption SO_REUSEADDR
public static final SocketOption SO_KEEPALIVE
public static final SocketOption SO_DONTROUTE
public static final SocketOption SO_BROADCAST
public static final SocketOption SO_USELOOPBACK
public static final SocketOption SO_LINGER
public static final SocketOption SO_OOBINLINE
public static final SocketOption SO_REUSEPORT
public static final SocketOption SO_TIMESTAMP
public static final SocketOption SO_SNDBUF
public static final SocketOption SO_RCVBUF
public static final SocketOption SO_SNDLOWAT
public static final SocketOption SO_RCVLOWAT
public static final SocketOption SO_SNDTIMEO
public static final SocketOption SO_RCVTIMEO
public static final SocketOption SO_ERROR
public static final SocketOption SO_TYPE
public static final SocketOption SO_ATTACH_FILTER
public static final SocketOption SO_DETACH_FILTER
public static final long MIN_VALUE
public static final long MAX_VALUE
public static SocketOption[] values()
for (SocketOption c : SocketOption.values()) System.out.println(c);
public static SocketOption valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017. All Rights Reserved.