diff options
author | Stijn Buys <ingar@osirion.org> | 2008-03-16 10:00:16 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-03-16 10:00:16 +0000 |
commit | 9a7ca1743f0c74042bca4d4903f7e56fe810edce (patch) | |
tree | a91faf4d038eb2c45e932c018ced0952414b730b /src/core/netclient.h | |
parent | c186b58679c50b06966997d33d5e91a99c5621ea (diff) |
accumulate client sends in the gameserver, transmit bufffer at the end of the server frame
Diffstat (limited to 'src/core/netclient.h')
-rw-r--r-- | src/core/netclient.h | 9 |
1 files changed, 7 insertions, 2 deletions
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<std::string> recvq; + std::string sendq; }; } |