diff options
author | Christian Pointner <equinox@spreadspace.org> | 2010-12-10 01:44:12 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2010-12-10 01:44:12 +0000 |
commit | 3b1c290f204885e35a4aada93dbaca90db11a5d2 (patch) | |
tree | a35f7f04854e869baa00aee3210489b4148952b1 /src/clients.h | |
parent | deferring buffer allocation at client_add for easier error handling (diff) |
added async connect
git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@46 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/clients.h')
-rw-r--r-- | src/clients.h | 4 |
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); |