From df774d45a9754274a1701d801e4a42e71d38c97c Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 27 Feb 2014 23:43:05 +0100 Subject: Use scatter/gather io with sendmsg to avoid concataning strings all the time --- src/network/socket_handler.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/network/socket_handler.hpp') diff --git a/src/network/socket_handler.hpp b/src/network/socket_handler.hpp index fcc8734..8828596 100644 --- a/src/network/socket_handler.hpp +++ b/src/network/socket_handler.hpp @@ -5,8 +5,9 @@ #include #include -#include #include +#include +#include typedef int socket_t; @@ -91,7 +92,7 @@ protected: /** * Where data is added, when we want to send something to the client. */ - std::string out_buf; + std::list out_buf; /** * A pointer to the poller that manages us, because we need to communicate * with it, sometimes (for example to tell it that he now needs to watch -- cgit v1.2.3