Which communication protocol to use ?

Payload :

<aside> 🌀 enum request type; int body_length; char *body;

</aside>

Before Game

<aside> 📝 The purpose of this protocol is to let the players join and create rooms before the game is launched.

</aside>

enum request {
	CREATE,
	JOIN,
	DELETE,
  READY,
	DISCONNECT
};

Client → Server

Joining a room

int JOIN;
int RoomID;

Client → Server

Deleting a room

int DELETE;
int RoomID;

Client → Server