diff options
| author | Stijn Buys <ingar@osirion.org> | 2008-10-16 16:34:15 +0000 | 
|---|---|---|
| committer | Stijn Buys <ingar@osirion.org> | 2008-10-16 16:34:15 +0000 | 
| commit | 1a28393dabf4f4696bf433ddde52e7a25253c955 (patch) | |
| tree | 4d4fa4034f30fc882a78ab6ea148a32e83b9e88c /src/core/netconnection.h | |
| parent | 1e0df536c2fae85c317ce9c3cc17603d5f98c911 (diff) | |
various user interface related updates
Diffstat (limited to 'src/core/netconnection.h')
| -rw-r--r-- | src/core/netconnection.h | 7 | 
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;  };  } | 
