java.lang.Object java.lang.Enum<ClientSocketState> com.realtime.crossfire.jxclient.server.socket.ClientSocketState
public enum ClientSocketState
Connection progress states of the ClientSocket
. The state transitions
in the declared order.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is nullpublic static ClientSocketState[] values()
for (ClientSocketState c : ClientSocketState.values()) System.out.println(c);