#pragma once class CDNDBConnection; // Àüü ÀÎÁõ±â´É °ü¸® class CAuthManager { public: CAuthManager(); virtual bool Init(); bool IsResetAuthServer() const { return m_bResetAuthServer; } void SetResetAuthServer(bool bResetAuthServer) { m_bResetAuthServer = bResetAuthServer; } void Run(DWORD CurTick); INT64 GetCertifyingKey(); int GetServerID() const { return m_ServerID; } protected: virtual int QueryResetAuthServer() = 0; private: const int CalculateServerID(); char* GetLocalIp(OUT in_addr* pInAddr = NULL); protected: bool m_bResetAuthServer; // ÃÖÃÊ ¼­¹ö ±âµ¿ ½Ã 'ÀÎÁõÁ¤º¸ ÃʱâÈ­ (ƯÁ¤ ¼­¹ö) ' °¡ ÀÌ·ç¾îÁ³´ÂÁö ¿©ºÎ DWORD m_ResetAuthServerTick; // ÃÖÃÊ ¼­¹ö ±âµ¿ ½Ã 'ÀÎÁõÁ¤º¸ ÃʱâÈ­ ÀÛ¾÷Áֱ⠰ü¸® (´ÜÀ§:ms) int m_ServerID; // °¢ ¼­¹ö¸¶´ÙÀÇ °íÀ¯ ID };