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>
60 lines
1.2 KiB
C++
60 lines
1.2 KiB
C++
#ifndef _RYL_CHAT_SERVER_H_
|
|
#define _RYL_CHAT_SERVER_H_
|
|
|
|
#include <Utility/ServerAppFramework/ServerWindowFramework.h>
|
|
|
|
#ifdef AUTH_MY
|
|
#include "NFAuthClient/AuthClient.h"
|
|
#endif
|
|
|
|
// 전방 참조
|
|
class CSessionPolicy;
|
|
|
|
class CRylChatServer : public CServerWindowFramework
|
|
#ifdef AUTH_MY
|
|
, public CPacketEvent
|
|
#endif
|
|
{
|
|
public:
|
|
|
|
static CRylChatServer& GetInstance();
|
|
|
|
// Desc : 중계서버로 연결한다.
|
|
void ConnectToAgentServer();
|
|
|
|
// Desc : RylChatCommands에서 호출하는 함수들.
|
|
void PrintStatistics();
|
|
void PrintServerInfo();
|
|
void ReloadSetup();
|
|
|
|
int MakeChatLog(char* szBuffer, size_t nBufferLength);
|
|
|
|
#ifdef AUTH_MY
|
|
|
|
public:
|
|
virtual void EventConnect(BOOL bConnect);
|
|
|
|
virtual void EventIRC(CHAR* strCmd, CHAR* strMsg);
|
|
virtual void EventCMD(DWORD dwCmd, DWORD dwValue);
|
|
|
|
void Update(unsigned long dwTick);
|
|
|
|
#endif
|
|
|
|
private:
|
|
|
|
virtual bool ApplicationSpecificInit(const TCHAR* szCmdLine);
|
|
bool InitializeCommand();
|
|
bool InitializeMsgProc();
|
|
|
|
CRylChatServer();
|
|
virtual ~CRylChatServer();
|
|
|
|
CSessionPolicy* m_lpClientPolicy;
|
|
CSessionPolicy* m_lpGameServerPolicy;
|
|
CSessionPolicy* m_lpAgentSessionPolicy;
|
|
CSessionPolicy* m_lpChatToolPolicy;
|
|
time_t m_tServerStart;
|
|
};
|
|
|
|
#endif |