Start protocol definitions
This commit is contained in:
parent
14610a65af
commit
283f4f2009
1 changed files with 8 additions and 0 deletions
|
@ -16,4 +16,12 @@ uint32_t makeip4(int, int, int, int);
|
||||||
/* Reads a stream into a buffer until end of line */
|
/* Reads a stream into a buffer until end of line */
|
||||||
int readline(int, char*, int);
|
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
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue