public enum RakDisconnectReason extends java.lang.Enum<RakDisconnectReason>
| Enum Constant and Description |
|---|
ALREADY_CONNECTED |
BAD_PACKET |
CLOSED_BY_REMOTE_PEER |
CONNECTION_REQUEST_FAILED |
DISCONNECTED |
INCOMPATIBLE_PROTOCOL_VERSION |
IP_RECENTLY_CONNECTED |
NO_FREE_INCOMING_CONNECTIONS |
QUEUE_TOO_LONG |
SHUTTING_DOWN |
TIMED_OUT |
| Modifier and Type | Method and Description |
|---|---|
static RakDisconnectReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RakDisconnectReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RakDisconnectReason CLOSED_BY_REMOTE_PEER
public static final RakDisconnectReason SHUTTING_DOWN
public static final RakDisconnectReason DISCONNECTED
public static final RakDisconnectReason TIMED_OUT
public static final RakDisconnectReason CONNECTION_REQUEST_FAILED
public static final RakDisconnectReason ALREADY_CONNECTED
public static final RakDisconnectReason NO_FREE_INCOMING_CONNECTIONS
public static final RakDisconnectReason INCOMPATIBLE_PROTOCOL_VERSION
public static final RakDisconnectReason IP_RECENTLY_CONNECTED
public static final RakDisconnectReason BAD_PACKET
public static final RakDisconnectReason QUEUE_TOO_LONG
public static RakDisconnectReason[] values()
for (RakDisconnectReason c : RakDisconnectReason.values()) System.out.println(c);
public static RakDisconnectReason 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 null