The client is registering with the server
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
|
||||
#include <chrono>
|
||||
|
||||
#define GAME_CHANNEL 0
|
||||
#define CHAT_CHANNEL 1
|
||||
|
||||
typedef std::chrono::high_resolution_clock Clock;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user