public enum ClientSocketState extends java.lang.Enum<ClientSocketState>
Enum Constant and Description |
---|
ACCOUNT_INFO
The client is connected, and account information is being exchanged.
|
ADDME
"addme" protocol commands are being exchanged.
|
CONNECT_FAILED
A connection could not be established.
|
CONNECTED
Connection is fully established.
|
CONNECTING
The socket is being established.
|
REQUESTINFO
"requestinfo" protocol commands are being exchanged.
|
SETUP
"setup" protocol commands are being exchanged.
|
VERSION
"version" protocol commands are being exchanged.
|
Modifier and Type | Method and Description |
---|---|
static ClientSocketState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClientSocketState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientSocketState ACCOUNT_INFO
public static final ClientSocketState ADDME
public static final ClientSocketState CONNECT_FAILED
public static final ClientSocketState CONNECTED
public static final ClientSocketState CONNECTING
public static final ClientSocketState REQUESTINFO
public static final ClientSocketState SETUP
public static final ClientSocketState VERSION
public static ClientSocketState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ClientSocketState[] values()
for (ClientSocketState c : ClientSocketState.values()) System.out.println(c);