diff options
-rw-r--r-- | Ivy/BufferedSocket.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Ivy/BufferedSocket.h b/Ivy/BufferedSocket.h index bd146ec..70e0b5e 100644 --- a/Ivy/BufferedSocket.h +++ b/Ivy/BufferedSocket.h @@ -26,10 +26,9 @@ protected: bool connected; /* wait to be connected before sending any Data */
char separator;
/* buffer de reception de l'application */
-#define MAX_BUFFER 2048
- // MAX_BUFFER +1 pour ajouter \0 a la fin
- char buf[MAX_BUFFER+1];
- char *ptr;
+ long buffer_size;
+ char *buffer;
+ char *current_ptr;
// Buffer Emission
CRITICAL_SECTION m_CritSection;
list<string> buf_out;
|