Add server statistics which are sent by the server to every client each time they change.

This commit is contained in:
lotodore
2007-10-20 22:22:11 +00:00
parent c5246aaef3
commit 4bc57f07d0
21 changed files with 302 additions and 3 deletions
+5
View File
@@ -120,6 +120,7 @@ protected:
void SendError(SOCKET s, int errorCode);
void SendJoinGameFailed(SOCKET s, int reason);
void SendGameList(SOCKET s);
void BroadcastStatisticsUpdate();
SenderThread &GetSender();
ReceiverHelper &GetReceiver();
@@ -168,6 +169,10 @@ private:
u_int32_t m_curUniquePlayerId;
mutable boost::mutex m_curUniquePlayerIdMutex;
unsigned m_totalPlayersLoggedIn;
unsigned m_totalGamesStarted;
ServerStats m_lastStatData;
};
#endif