Files
Sun1602/Tools/SunUpdateManager/SunUpdateAgent/Handler_SA.h
T
2022-10-26 12:25:11 +08:00

44 lines
2.2 KiB
C++

#pragma once
#include <PacketStruct.h>
class UpdateServerSession;
class Handler_SA
{
public:
Handler_SA(void);
~Handler_SA(void);
public:
static VOID OnHandler_MSG_SA_SERVER_AUTH_ACK( UpdateServerSession* pSession, MSG_BASE* pMsg, int nSize );
static VOID OnHandler_MSG_SA_SERVER_EXECUTE_SYN( UpdateServerSession* pSession, MSG_BASE* pMsg, int nSize );
static VOID OnHandler_MSG_SA_SERVER_TYPE_ACK( UpdateServerSession* pSession, MSG_BASE* pMsg, int nSize );
static VOID OnHandler_MSG_SA_SERVER_FORCE_DISCONNECT_SYN( UpdateServerSession* pSession, MSG_BASE* pMsg, int nSize );
static VOID OnHandler_MSG_SA_SERVER_BACKUP_SYN( UpdateServerSession* pSession, MSG_BASE* pMsg, int nSize );
static VOID OnHandler_MSG_SA_SERVER_RESTORE_SYN( UpdateServerSession* pSession, MSG_BASE* pMsg, int nSize );
// Notcie
static VOID OnHandler_MSG_SA_SERVER_NOTICE_SYN( UpdateServerSession* pSession, MSG_BASE* pMsg, int nSize );
static VOID OnHandler_MSG_SA_SERVER_SEND_NOTICE_SYN( UpdateServerSession* pSession, MSG_BASE* pMsg, int nSize );
static VOID OnHandler_MSG_SA_CHECK_LOGFILE_SYN( UpdateServerSession* pSession, MSG_BASE* pMsg, int nSize );
static VOID OnHandler_MSG_SA_PATCH_EXECUTE_SYN( UpdateServerSession* pSession, MSG_BASE* pMsg, int nSize );
//////////////////////////////////////////////////////////////////////////
#ifdef __20080312__SOLARAUTH_SERVER_PATCH
static VOID OnHandler_MSG_SA_SOLARSCRIPT_BACKUP_SYN( UpdateServerSession* pSession, MSG_BASE* pMsg, int nSize );
static VOID OnHandler_MSG_SA_SOLARSCRIPT_RESTORE_SYN( UpdateServerSession* pSession, MSG_BASE* pMsg, int nSize );
static VOID OnHandler_MSG_SA_SOLARSCRIPT_EXECUTE_SYN( UpdateServerSession* pSession, MSG_BASE* pMsg, int nSize );
#endif
//////////////////////////////////////////////////////////////////////////
#ifdef _NA_006543_20130318_HEARTBEAT
static VOID OnHandler_MSG_SA_CHECK_HEARTBEAT_ACK( UpdateServerSession* pSession, MSG_BASE* pMsg, int nSize );
#endif
#ifdef _NA_006662_20130423_SVNPATCH
private:
static VOID _ProcessPatchUsingUpdateTool(UpdateServerSession *pSession, MSG_BASE *pMsg, int nSize);
static VOID _ProcessPatchUsingBatchFile(UpdateServerSession *pSession, MSG_BASE *pMsg, int nSize);
#endif //_NA_006662_20130423_SVNPATCH
};