diff options
author | Christian Pointner <equinox@spreadspace.org> | 2010-11-28 21:49:51 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2010-11-28 21:49:51 +0000 |
commit | 21203e393c36d9c079491fb0644b9bce32f71758 (patch) | |
tree | d65a1ff398c29e9c7fb398544c266ccafd14acc1 /src/clients.h | |
parent | one side of cleint connections works for recv (diff) |
first minial version working
git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@12 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/clients.h')
-rw-r--r-- | src/clients.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/clients.h b/src/clients.h index 9ab8f0c..7052161 100644 --- a/src/clients.h +++ b/src/clients.h @@ -33,9 +33,12 @@ #include "slist.h" #include "tcp.h" +#define BUFFER_LENGTH 1048576 + typedef struct { int fd_[2]; - // TODO: add info for each client and write buffers + u_int8_t write_buf_[2][BUFFER_LENGTH]; + u_int32_t write_buf_len_[2]; } client_t; void clients_delete_element(void* e); |