com.realtime.crossfire.jxclient.server.socket
Enum ClientSocketState

java.lang.Object
  extended by java.lang.Enum<ClientSocketState>
      extended by com.realtime.crossfire.jxclient.server.socket.ClientSocketState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ClientSocketState>

public enum ClientSocketState
extends java.lang.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

ACCOUNT_INFO

public static final ClientSocketState ACCOUNT_INFO
The client is connected, and account information is being exchanged.


ADDME

public static final ClientSocketState ADDME
"addme" protocol commands are being exchanged.


CONNECT_FAILED

public static final ClientSocketState CONNECT_FAILED
A connection could not be established.


CONNECTED

public static final ClientSocketState CONNECTED
Connection is fully established.


CONNECTING

public static final ClientSocketState CONNECTING
The socket is being established.


REQUESTINFO

public static final ClientSocketState REQUESTINFO
"requestinfo" protocol commands are being exchanged.


SETUP

public static final ClientSocketState SETUP
"setup" protocol commands are being exchanged.


VERSION

public static final ClientSocketState VERSION
"version" protocol commands are being exchanged.

Method Detail

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 name
java.lang.NullPointerException - if the argument is null

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