Enum Class ClientSocketState

java.lang.Object
java.lang.Enum<ClientSocketState>
com.realtime.crossfire.jxclient.guistate.ClientSocketState
All Implemented Interfaces:
Serializable, Comparable<ClientSocketState>, Constable

public enum ClientSocketState extends Enum<ClientSocketState>
Connection progress states of the Crossfire server connection. The state transitions in the declared order.
  • Enum Constant Details

    • 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.
    • 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 Details

    • values

      public static ClientSocketState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ClientSocketState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null