public static enum SocketOptions.SocketDomain extends Enum<SocketOptions.SocketDomain>
Enum Constant and Description |
---|
IPv4
Corresponds to PF_INET in Berkeley sockets
|
IPv6
Corresponds to PF_INET6 in Berkeley sockets
|
LOCAL
Corresponds to PF_LOCAL in Berkeley sockets, usually UNIX domain sockets or named pipes
|
Modifier and Type | Method and Description |
---|---|
static SocketOptions.SocketDomain |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocketOptions.SocketDomain[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocketOptions.SocketDomain IPv4
public static final SocketOptions.SocketDomain IPv6
public static final SocketOptions.SocketDomain LOCAL
public static SocketOptions.SocketDomain[] values()
for (SocketOptions.SocketDomain c : SocketOptions.SocketDomain.values()) System.out.println(c);
public static SocketOptions.SocketDomain 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 © 2021. All rights reserved.