Files
Client/Server/RylServerProject/RylAuthServer/AuthAgentServerTable.h
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

50 lines
1.2 KiB
C++

#ifndef _AUTH_AGENT_SERVER_TABLE_H_
#define _AUTH_AGENT_SERVER_TABLE_H_
#include <map>
#include <Thread/Lock.h>
#include <Network/Packet/PacketStruct/ServerInfo.h>
#include "AuthAgentDispatch.h"
// Àü¹æ ÂüÁ¶
class CSession;
class CAuthAgentDispatch;
class CAuthClientDispatch;
// MultiThread °¡´É.
class CAuthAgentServerTable
{
public:
static CAuthAgentServerTable& GetInstance();
void Destroy();
// Get Data
void GetPatchServerAddress(unsigned long& dwClientVer,
char* szPatchAddress_Out, size_t nBufferLen);
void SetAgentServerInfo(RylServerInfo& ServerInfo);
void GetAgentServerInfo(RylServerInfo& ServerInfo);
unsigned long GetServerVersion();
unsigned long GetServerChecksum();
// Update Data
void UpdateServerData(unsigned long dwChecksum,
unsigned long dwClientVer, const char* szPatchAddress);
void UpdateChannelUserNum(unsigned short* lpdwClientChannelNum,
unsigned short usChannelNum);
private:
CAuthAgentServerTable();
~CAuthAgentServerTable();
typedef CCSLock AuthAgentLock;
AuthAgentLock m_AuthAgentLock;
CACHE_PAD(PaddingAgent, sizeof(AuthAgentLock));
RylServerInfo m_AgentServerInfo;
};
#endif