mirror of
https://github.com/glest/glest-source.git
synced 2025-09-28 00:19:00 +02:00
- attempt to add a client LAG checker to notify and disconnect clients that fall too far behind.
This commit is contained in:
@@ -33,6 +33,7 @@ class ClientInterface: public GameNetworkInterface{
|
||||
private:
|
||||
static const int messageWaitTimeout;
|
||||
static const int waitSleepTime;
|
||||
static const int maxNetworkCommandListSendTimeWait;
|
||||
|
||||
private:
|
||||
ClientSocket *clientSocket;
|
||||
@@ -48,6 +49,9 @@ private:
|
||||
Ip ip;
|
||||
int port;
|
||||
|
||||
int currentFrameCount;
|
||||
time_t lastNetworkCommandListSendTime;
|
||||
|
||||
public:
|
||||
ClientInterface();
|
||||
virtual ~ClientInterface();
|
||||
@@ -88,6 +92,8 @@ public:
|
||||
virtual bool getConnectHasHandshaked() const { return gotIntro; }
|
||||
std::string getServerIpAddress();
|
||||
|
||||
int getCurrentFrameCount() const { return currentFrameCount; }
|
||||
|
||||
protected:
|
||||
|
||||
Mutex * getServerSynchAccessor() { return NULL; }
|
||||
|
Reference in New Issue
Block a user