41 lines
822 B
C++
41 lines
822 B
C++
// stdafx.cpp : 표준 포함 파일만 들어 있는 소스 파일입니다.
|
|
// SunUpdateServer.pch는 미리 컴파일된 헤더가 됩니다.
|
|
// stdafx.obj에는 미리 컴파일된 형식 정보가 포함됩니다.
|
|
|
|
#include "stdafx.h"
|
|
|
|
// TODO: 필요한 추가 헤더는
|
|
// 이 파일이 아닌 STDAFX.H에서 참조합니다.
|
|
|
|
CBasicLog* g_pLog = NULL;
|
|
|
|
VOID MessageOut( TCHAR* pszMsg... )
|
|
{
|
|
char strBuffer[256];
|
|
|
|
va_list args;
|
|
va_start(args, pszMsg);
|
|
_vsnprintf( strBuffer, 256, pszMsg, args );
|
|
va_end(args);
|
|
|
|
printf("%s\n", strBuffer); //임시로.. 썬로그가 생성되지 않았으면 화면에 출력시켜라...
|
|
|
|
if(g_pLog)
|
|
g_pLog->InsertMessage( strBuffer );
|
|
}
|
|
|
|
|
|
TCHAR* GetUpdateServerType( eUPDATE_SERVER_TYPE type )
|
|
{
|
|
switch( type )
|
|
{
|
|
case UPDATE_AGENT:
|
|
return "UpdateAgent";
|
|
case UPDATE_MASTER:
|
|
return "MasterServer";
|
|
default:
|
|
return "Unknown Server";
|
|
}
|
|
|
|
return NULL;
|
|
} |