first steps towards supporting the "bye" command

This commit is contained in:
marschap
2008-11-28 18:34:10 +00:00
parent a3db7b4cb2
commit 0dde525a46
7 changed files with 33 additions and 25 deletions
+7 -1
View File
@@ -23,9 +23,15 @@
#define CLIENT_NAME_SIZE 256
typedef enum _clientstate {
NEW,
ACTIVE,
GONE
} ClientState;
typedef struct Client {
char *name;
int ack;
ClientState state;
int sock;
int backlight;
int heartbeat;