From 9a7ca1743f0c74042bca4d4903f7e56fe810edce Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 16 Mar 2008 10:00:16 +0000 Subject: accumulate client sends in the gameserver, transmit bufffer at the end of the server frame --- src/core/netclient.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/core/netclient.h') diff --git a/src/core/netclient.h b/src/core/netclient.h index f06f7c5..23a2787 100644 --- a/src/core/netclient.h +++ b/src/core/netclient.h @@ -41,16 +41,21 @@ public: /// receive incoming data and store messages void receive(); + + /// buffer outgoing data + void send(std::string const &msg); + + /// send bufered outgoing data + void transmit(); private: std::string client_host; int client_port; Player client_player; - std::string sendq; - std::string messageblock; std::deque recvq; + std::string sendq; }; } -- cgit v1.2.3