Go to the documentation of this file.
25 #define MAKE_NUM(A, B, C, D) (((A+B)<<8)|(C+D))
28 #define CHAT_SCROLLBACK 512
29 #define CHAT_PROMPT "> "
30 #define CHAT_PACKETSIZE 256
33 #define CHAT_PORT MAKE_NUM('C','H','A','T')
37 #define CHAT_HELLO_PORT 1
38 #define CHAT_HELLO_NLEN CHAT_HELLO_PORT+2
39 #define CHAT_HELLO_NAME CHAT_HELLO_NLEN+1
41 #define CHAT_ADD_SLOT 1
42 #define CHAT_ADD_HOST CHAT_ADD_SLOT+1
43 #define CHAT_ADD_PORT CHAT_ADD_HOST+4
44 #define CHAT_ADD_NLEN CHAT_ADD_PORT+2
45 #define CHAT_ADD_NAME CHAT_ADD_NLEN+1
47 #define CHAT_DEL_SLOT 1
48 #define CHAT_DEL_LEN CHAT_DEL_SLOT+1
50 #define CHAT_BYE_LEN 1
53 #define CHAT_MAXPEOPLE 10