From 283f4f2009f6706075188a2f4ca2bc3eb95f678c Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Thu, 27 Oct 2022 14:25:31 +0200 Subject: [PATCH] Start protocol definitions --- src/common.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/common.h b/src/common.h index a4f03a7..57397fa 100644 --- a/src/common.h +++ b/src/common.h @@ -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