41 lines
1.5 KiB
C++
41 lines
1.5 KiB
C++
#include "StdAfx.h"
|
|
#include ".\handler_at.h"
|
|
#include <PacketStruct_AT.h>
|
|
#include <PacketStruct_SA.h>
|
|
#include <Constant.h>
|
|
#include "UpdateToolSession.h"
|
|
#include "SunUpdateAgent.h"
|
|
|
|
Handler_AT::Handler_AT(void)
|
|
{
|
|
}
|
|
|
|
Handler_AT::~Handler_AT(void)
|
|
{
|
|
}
|
|
|
|
VOID Handler_AT::OnHandler_MSG_MO_RTTG_PATCHRESULT_ANS( UpdateToolSession* pSession, MSG_BASE* pMsg, int nSize )
|
|
{
|
|
MSG_MO_RTTG_PATCHRESULT_ANS *pRecvMsg = (MSG_MO_RTTG_PATCHRESULT_ANS*)pMsg;
|
|
|
|
if( pRecvMsg->dwError == MSG_MO_RTTG_PATCHRESULT_ANS::ERROR_PATCHSUCCESS )
|
|
MSGOUT("패치 성공 : ServerType = %d, UserKey = %d ", pRecvMsg->byServerType, pRecvMsg->dwKey );
|
|
else if( pRecvMsg->dwError == MSG_MO_RTTG_PATCHRESULT_ANS::ERROR_LASTEST_VERSION )
|
|
MSGOUT("이미 최신 버전 : ServerType = %d, UserKey = %d ", pRecvMsg->byServerType, pRecvMsg->dwKey );
|
|
else if( pRecvMsg->dwError == MSG_MO_RTTG_PATCHRESULT_ANS::ERROR_FILENOTFOUND )
|
|
MSGOUT("패치 파일 찾기 실패 : ServerType = %d, UserKey = %d ", pRecvMsg->byServerType, pRecvMsg->dwKey );
|
|
else
|
|
MSGOUT("패치 실패 : ErrorCode = %d, ServerType = %d, UserKey = %d ", pRecvMsg->dwError, pRecvMsg->byServerType, pRecvMsg->dwKey );
|
|
|
|
MSG_SA_PATCH_RESULT_NTF msg;
|
|
msg.m_dwResult = pRecvMsg->dwError;
|
|
msg.m_dwUserKey = pRecvMsg->dwKey;
|
|
msg.m_byNum = pRecvMsg->byNum;
|
|
msg.m_byServerType = pRecvMsg->byServerType;
|
|
|
|
msg.m_PatchVer.m_byVer1 = pRecvMsg->byVer1;
|
|
msg.m_PatchVer.m_byVer2 = pRecvMsg->byVer2;
|
|
msg.m_PatchVer.m_byVer3 = pRecvMsg->byVer3;
|
|
|
|
SunUpdateAgent::Instance()->SendToUpdateServer( &msg, sizeof(msg) );
|
|
} |