udt.packets
Enum ControlPacket.ControlPacketType
java.lang.Object
java.lang.Enum<ControlPacket.ControlPacketType>
udt.packets.ControlPacket.ControlPacketType
- All Implemented Interfaces:
- Serializable, Comparable<ControlPacket.ControlPacketType>
- Enclosing class:
- ControlPacket
public static enum ControlPacket.ControlPacketType
- extends Enum<ControlPacket.ControlPacketType>
CONNECTION_HANDSHAKE
public static final ControlPacket.ControlPacketType CONNECTION_HANDSHAKE
KEEP_ALIVE
public static final ControlPacket.ControlPacketType KEEP_ALIVE
ACK
public static final ControlPacket.ControlPacketType ACK
NAK
public static final ControlPacket.ControlPacketType NAK
UNUNSED_1
public static final ControlPacket.ControlPacketType UNUNSED_1
SHUTDOWN
public static final ControlPacket.ControlPacketType SHUTDOWN
ACK2
public static final ControlPacket.ControlPacketType ACK2
MESSAGE_DROP_REQUEST
public static final ControlPacket.ControlPacketType MESSAGE_DROP_REQUEST
UNUNSED_2
public static final ControlPacket.ControlPacketType UNUNSED_2
UNUNSED_3
public static final ControlPacket.ControlPacketType UNUNSED_3
UNUNSED_4
public static final ControlPacket.ControlPacketType UNUNSED_4
UNUNSED_5
public static final ControlPacket.ControlPacketType UNUNSED_5
UNUNSED_6
public static final ControlPacket.ControlPacketType UNUNSED_6
UNUNSED_7
public static final ControlPacket.ControlPacketType UNUNSED_7
UNUNSED_8
public static final ControlPacket.ControlPacketType UNUNSED_8
USER_DEFINED
public static final ControlPacket.ControlPacketType USER_DEFINED
values
public static ControlPacket.ControlPacketType[] 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 (ControlPacket.ControlPacketType c : ControlPacket.ControlPacketType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ControlPacket.ControlPacketType valueOf(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:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2013 LittleShoot. All Rights Reserved.