From 21203e393c36d9c079491fb0644b9bce32f71758 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 28 Nov 2010 21:49:51 +0000 Subject: first minial version working git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@12 e61f0598-a718-4e21-a8f0-0aadfa62ad6b --- src/clients.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/clients.h') 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); -- cgit v1.2.3