#include "StdAfx.h" #include ".\handler_at.h" #include #include #include #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) ); }