Start protocol definitions

This commit is contained in:
flyingscorpio@clevo 2022-10-27 14:25:31 +02:00
parent 14610a65af
commit 283f4f2009

View file

@ -16,4 +16,12 @@ uint32_t makeip4(int, int, int, int);
/* Reads a stream into a buffer until end of line */
int readline(int, char*, int);
/* Protocol command definitions */
#define CMD_HELLO 'H'
#define CMD_HELP 'h'
#define CMD_QUIT 'q'
#define CMD_SEND_MESSAGE 's'
#define CMD_BROADCAST 'b'
#define CMD_LIST_CONNECTED 'l'
#endif