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 14:51:37 +0000
committerStijn Buys <ingar@osirion.org>2008-03-16 14:51:37 +0000
commit7d7b9324f1f0db14648fb9fe32256d7942af77b9 (patch)
treeef2a60c275f22c6b1ab7430a299138597030b581 /src/core/netconnection.h
parent9a7ca1743f0c74042bca4d4903f7e56fe810edce (diff)
somewhat smoother network play, player assets, client pif updates
Diffstat (limited to 'src/core/netconnection.h')
-rw-r--r--src/core/netconnection.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/core/netconnection.h b/src/core/netconnection.h
index 9a801ec..7623e64 100644
--- a/src/core/netconnection.h
+++ b/src/core/netconnection.h
@@ -34,6 +34,12 @@ public:
/// process pending incoming messages
void frame(float seconds);
+ /// buffer outgoing data
+ void send(std::string const &msg);
+
+ /// send bufered outgoing data
+ void transmit();
+
protected:
/// receive incoming data and store messages
void receive();
@@ -48,9 +54,10 @@ protected:
void parse_incoming_message(const std::string & message);
private:
- std::string messageblock;
- std::deque<std::string> recvq;
- fd_set clientset;
+ std::string messageblock;
+ std::deque<std::string> recvq;
+ std::string sendq;
+ fd_set clientset;
};
}