DragonNest/Server/ServerCommon/DNLogConnection.h
2024-12-20 16:56:44 +08:00

35 lines
1.7 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include "Connection.h"
#if defined( _GAMESERVER )
class CDNGameRoom;
class CDNUserSession;
class CDnPlayerActor;
#endif
class CDNLogConnection: public CConnection
{
private:
DWORD m_dwReconnectTick;
#if defined(PRE_ADD_LOGSERVER_HEARTBEAT)
DWORD m_dwLastRecvTick;
DWORD m_dwSendSYNTick;
DWORD m_dwSendSYNACKTick;
#endif
public:
CDNLogConnection(void);
virtual ~CDNLogConnection(void);
#if defined(PRE_ADD_LOGSERVER_HEARTBEAT)
void ResetLiveCheck();
void LiveCheck(DWORD CurTick);
int MessageProcess(int iMainCmd, int iSubCmd, char *pData, int iLen);
#else //#if defined(PRE_ADD_LOGSERVER_HEARTBEAT)
int MessageProcess(int iMainCmd, int iSubCmd, char *pData, int iLen) { return ERROR_NONE; }
#endif //#if defined(PRE_ADD_LOGSERVER_HEARTBEAT)
void Reconnect(DWORD CurTick);
};
extern CDNLogConnection* g_pLogConnection;