Added REQUEST_RECEIVED and DECLINED to ConnnectionStateEnum.
#story[1095]
This commit is contained in:
@@ -16,14 +16,25 @@ public enum ConnectionStateEnum {
|
||||
WAITING_FOR_HANDSHAKE(1),
|
||||
|
||||
/**
|
||||
* The client has completed the handshake, and is connected.
|
||||
* The server has receved a {@link network.Messages.RequestToJoin} from the client.
|
||||
*/
|
||||
CONNECTED(2),
|
||||
REQUEST_RECEIVED(2),
|
||||
|
||||
/**
|
||||
* The client has completed the handshake, and is connected.
|
||||
* That is, the client sent a {@link network.Messages.RequestToJoin}, which was successful, and the server responded with a {@link network.Messages.JoinAcceptance}.
|
||||
*/
|
||||
CONNECTED(3),
|
||||
|
||||
/**
|
||||
* The client has timed out.
|
||||
*/
|
||||
TIMED_OUT(3);
|
||||
TIMED_OUT(4),
|
||||
|
||||
/**
|
||||
* The client's connection has been declined.
|
||||
*/
|
||||
DECLINED(5);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user