public enum SocketOption extends Enum<SocketOption> implements Constant
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() |
int |
value() |
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_LINGER
public static final SocketOption SO_OOBINLINE
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_BINDTODEVICE
public static final SocketOption SO_DETACH_FILTER
public static final SocketOption SO_NO_CHECK
public static final SocketOption SO_PASSCRED
public static final SocketOption SO_PEERCRED
public static final SocketOption SO_PEERNAME
public static final SocketOption SO_PRIORITY
public static final SocketOption SO_SECURITY_AUTHENTICATION
public static final SocketOption SO_SECURITY_ENCRYPTION_NETWORK
public static final SocketOption SO_SECURITY_ENCRYPTION_TRANSPORT
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 nullpublic final int value()
Copyright © 2017. All Rights Reserved.