-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNetCommands.cs
More file actions
41 lines (36 loc) · 1014 Bytes
/
NetCommands.cs
File metadata and controls
41 lines (36 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
namespace tbsgNetLib{
public enum NetCommands
{
/**
* \brief Sent by client. First command the client should sent to the Lobby or Gameserver to identify itself.
* \param std::string The session token of the client that it got provided from the Login WebApp
*/
Identify,
/**
* \brief Sent by server after NetCommands::Identify. Sent when the identification was valid.
*/
IdentifySuccessful,
/**
* \brief Sent by server after NetCommands::Identify. Sent when the identification was invalid.
*/
IdentifyFailure,
/**
* \brief Sent by server if the client is trying to execute a custom command while not being identified.
*/
NotIdentified,
/**
* \brief Sent by server if the client has connected but the server has encryption disabled.
*/
ConnectedWithoutEncryption,
HandshakeServerKey,
HandshakeDataKey,
HandshakeSuccess,
HandshakeFailed,
CryptoPacket,
/**
* \brief Custom command that will be passed to the custom implementation.
*/
CustomCommand
}
}