Enum ClientSocketState
- java.lang.Object
-
- java.lang.Enum<ClientSocketState>
-
- com.realtime.crossfire.jxclient.guistate.ClientSocketState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ClientSocketState>
public enum ClientSocketState extends java.lang.Enum<ClientSocketState>
Connection progress states of the Crossfire server connection. The state transitions in the declared order.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCOUNT_INFOThe client is connected, and account information is being exchanged.ADDME"addme" protocol commands are being exchanged.CONNECT_FAILEDA connection could not be established.CONNECTEDConnection is fully established.CONNECTINGThe 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.WAIT_REPLYINFOThe client is connected but waits for replyinfo messages.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClientSocketStatevalueOf(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.
-
-
-
Enum Constant Detail
-
CONNECTING
public static final ClientSocketState CONNECTING
The socket is being established.
-
VERSION
public static final ClientSocketState VERSION
"version" protocol commands are being exchanged.
-
SETUP
public static final ClientSocketState SETUP
"setup" protocol commands are being exchanged.
-
REQUESTINFO
public static final ClientSocketState REQUESTINFO
"requestinfo" protocol commands are being exchanged.
-
ADDME
public static final ClientSocketState ADDME
"addme" protocol commands are being exchanged.
-
ACCOUNT_INFO
public static final ClientSocketState ACCOUNT_INFO
The client is connected, and account information is being exchanged.
-
WAIT_REPLYINFO
public static final ClientSocketState WAIT_REPLYINFO
The client is connected but waits for replyinfo messages.
-
CONNECTED
public static final ClientSocketState CONNECTED
Connection is fully established.
-
CONNECT_FAILED
public static final ClientSocketState CONNECT_FAILED
A connection could not be established.
-
-
Method Detail
-
values
public static ClientSocketState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClientSocketState c : ClientSocketState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClientSocketState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-