summaryrefslogtreecommitdiff
path: root/src/clients.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients.h')
-rw-r--r--src/clients.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clients.h b/src/clients.h
index a6337c3..a24c044 100644
--- a/src/clients.h
+++ b/src/clients.h
@@ -35,10 +35,14 @@
#define BUFFER_LENGTH 10240
+enum client_state_enum { CONNECTING, CONNECTED };
+typedef enum client_state_enum client_state_t;
+
typedef struct {
int fd_[2];
buffer_t write_buf_[2];
u_int32_t write_buf_offset_[2];
+ client_state_t state_;
} client_t;
void clients_delete_element(void* e);