Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/netconnection.h')
-rw-r--r--src/core/netconnection.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/netconnection.h b/src/core/netconnection.h
index cb04ce2..66f7369 100644
--- a/src/core/netconnection.h
+++ b/src/core/netconnection.h
@@ -48,7 +48,7 @@ public:
virtual void disconnect();
/// process pending incoming messages
- void frame(float seconds);
+ void frame();
/// send a connect message to the remote server
void send_connect();
@@ -93,6 +93,9 @@ public:
State connection_state;
+ /// return the current game time
+ inline unsigned long timestamp() const { return connection_timestamp; }
+
protected:
/// add a raw network message to the send queue
void send_raw(std::string const &msg);
@@ -128,6 +131,8 @@ private:
size_t received_compressed_size;
size_t compressed_size;
char zrecvbuf[BLOCKSIZE];
+
+ unsigned long connection_timestamp;
};
}