From 9fa9cb8fa13049fa4ba28d31159b4e1a0c6c0432 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 12 Jun 2005 12:32:14 +0000 Subject: Some cleanups mostly in account class formatting. --- src/connectionhandler.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/connectionhandler.h') diff --git a/src/connectionhandler.h b/src/connectionhandler.h index ab01dc2..cf93e6a 100644 --- a/src/connectionhandler.h +++ b/src/connectionhandler.h @@ -30,9 +30,27 @@ #include #include +#define IN_BUFFER_SIZE 8192 + + // Forward declaration class ListenThreadData; +/** + * Data related to a connected client. This includes the buffer for incoming + * messages and the related socket. + */ +class ClientData +{ + public: + ClientData(); + + TCPsocket sock; /**< The socket used for communication */ + + int inp; /**< The amount of data in the in buffer */ + char in[IN_BUFFER_SIZE]; /**< The in buffer for incoming messages */ +}; + /** * This class represents the connection handler interface. The connection * handler will respond to connect/reconnect/disconnect events and handle -- cgit