diff options
author | Florent Le Coz <louiz@louiz.org> | 2013-12-21 21:04:31 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2013-12-23 17:07:43 +0100 |
commit | 2ecb637f0c4a97643962d1703f208d1b1baf7e9b (patch) | |
tree | 29c3aaa7c444cd8ac50c93c35be728f1203e72d9 /src/network/socket_handler.hpp | |
parent | e35472a6cbc5ffecf0413c2c7da1e2552230d227 (diff) | |
download | biboumi-2ecb637f0c4a97643962d1703f208d1b1baf7e9b.tar.gz biboumi-2ecb637f0c4a97643962d1703f208d1b1baf7e9b.tar.bz2 biboumi-2ecb637f0c4a97643962d1703f208d1b1baf7e9b.tar.xz biboumi-2ecb637f0c4a97643962d1703f208d1b1baf7e9b.zip |
Read a variable number of bytes, 4096 by default
Diffstat (limited to 'src/network/socket_handler.hpp')
-rw-r--r-- | src/network/socket_handler.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/socket_handler.hpp b/src/network/socket_handler.hpp index 4152a4e..6678722 100644 --- a/src/network/socket_handler.hpp +++ b/src/network/socket_handler.hpp @@ -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. */ |