The client is registering with the server

This commit is contained in:
Kayne Ruse
2013-06-17 19:53:22 +10:00
parent 69f03cd250
commit fd65fec5f7
8 changed files with 38 additions and 23 deletions
+3
View File
@@ -3,6 +3,9 @@
#include <chrono>
#define GAME_CHANNEL 0
#define CHAT_CHANNEL 1
typedef std::chrono::high_resolution_clock Clock;
#endif
+1 -4
View File
@@ -52,14 +52,11 @@ struct BroadcastResponse {
struct JoinRequest {
Metadata meta;
char playerHandle[PACKET_STRING_SIZE];
char playerAvatar[PACKET_STRING_SIZE];
//TODO: player data
};
struct JoinResponse {
Metadata meta;
int playerIndex;
int clientIndex;
//resource list
};