Files
LGram16 dd97ddec92 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>
2025-11-29 20:17:20 +09:00

34 lines
755 B
C++

#ifndef _CHECK_PING_H_
#define _CHECK_PING_H_
#include <Thread/Lock.h>
class CCheckPing
{
public:
CCheckPing();
enum { PING_INTERVAL = 10000 }; // 10ÃÊ
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