Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-03-16 10:00:16 +0000
committerStijn Buys <ingar@osirion.org>2008-03-16 10:00:16 +0000
commit9a7ca1743f0c74042bca4d4903f7e56fe810edce (patch)
treea91faf4d038eb2c45e932c018ced0952414b730b /src/core/netclient.h
parentc186b58679c50b06966997d33d5e91a99c5621ea (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.h9
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;
};
}