Read a variable number of bytes, 4096 by default

This commit is contained in:
Florent Le Coz
2013-12-23 17:07:43 +01:00
parent e35472a6cb
commit 2ecb637f0c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ public:
* Reads data in our in_buf and the call parse_in_buf, for the implementor
* to handle the data received so far.
*/
void on_recv();
void on_recv(const size_t nb = 4096);
/**
* Write as much data from out_buf as possible, in the socket.
*/