Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#ifndef _CHECK_PING_H_
|
||||
#define _CHECK_PING_H_
|
||||
|
||||
#include <Thread/Lock.h>
|
||||
|
||||
class CCheckPing
|
||||
{
|
||||
public:
|
||||
|
||||
CCheckPing();
|
||||
|
||||
enum { PING_INTERVAL = 10000 }; // 10<31><30>
|
||||
|
||||
bool CheckPing(unsigned long dwCurrentTime);
|
||||
void SetLastPingRecvTime(unsigned long dwCurrentTime);
|
||||
|
||||
unsigned long GetLastPingRecvTime();
|
||||
unsigned long GetPingCount();
|
||||
|
||||
void GetPingData(unsigned long& dwPingCount,
|
||||
unsigned long& dwLastPingRecvTime, unsigned long& dwFirstCheckTime);
|
||||
|
||||
private:
|
||||
|
||||
typedef CCSLock CheckPingLock;
|
||||
CheckPingLock m_PingLock;
|
||||
CACHE_PAD(CheckPingLockPad, sizeof(CheckPingLock));
|
||||
|
||||
unsigned long m_dwPingCount;
|
||||
unsigned long m_dwLastPingRecvTime;
|
||||
unsigned long m_dwFirstCheckTime;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user