diff options
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; }; } |