Added REQUEST_RECEIVED and DECLINED to ConnnectionStateEnum.

#story[1095]
This commit is contained in:
fjc40
2017-08-12 01:05:45 +12:00
parent 41b0a5d7f7
commit 6e5fb62880
3 changed files with 18 additions and 24 deletions
@@ -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);