Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
59
Server/ManageTool/ManageServer/ManageMsgProcess.cpp
Normal file
59
Server/ManageTool/ManageServer/ManageMsgProcess.cpp
Normal file
@@ -0,0 +1,59 @@
|
||||
#include "stdafx.h"
|
||||
#include "Resource.h"
|
||||
#include "ManageServer.h"
|
||||
|
||||
#include <Log/ServerLog.h>
|
||||
#include <Utility/ServerAppFramework/MsgProc/MsgProc.h>
|
||||
#include <Utility/ServerAppFramework/ConsoleWindow/ConsoleWindow.h>
|
||||
|
||||
class CProcessCOMMAND : public CMsgProc
|
||||
{
|
||||
public:
|
||||
|
||||
CProcessCOMMAND(CConsoleWindow& ConsoleWindow) : m_ConsoleWindow(ConsoleWindow) { }
|
||||
virtual ~CProcessCOMMAND() { }
|
||||
|
||||
virtual LRESULT operator () (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
char* szCommand = 0;
|
||||
|
||||
switch (LOWORD(wParam))
|
||||
{
|
||||
case ID_MENU_OPENCONSOLE: m_ConsoleWindow.Initialize("ManageServer"); break;
|
||||
case ID_MENU_CLOSECONSOLE: m_ConsoleWindow.Destroy(); break;
|
||||
case ID_MENU_RELOADSETUP: szCommand = "reload"; break;
|
||||
case ID_MENU_CONNECTTOSTATSERVER: CManageServer::GetInstance().ConnectToStatServer(); break;
|
||||
case ID_MENU_FLUSH: szCommand = "flush";
|
||||
}
|
||||
|
||||
if(LOWORD(wParam) == IDM_EXIT)
|
||||
{
|
||||
DETLOG0(g_Log, "Terminate Manage Server System Tray.");
|
||||
PostMessage(hWnd, WM_QUIT, 0, 0);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
CConsoleWindow& m_ConsoleWindow;
|
||||
};
|
||||
|
||||
|
||||
bool CManageServer::InitializeMsgProc()
|
||||
{
|
||||
int nErrorCount = 0;
|
||||
CMsgProcessMgr* lpMsgProcessMgr = GetMsgProcessMgr();
|
||||
|
||||
if(0 != lpMsgProcessMgr)
|
||||
{
|
||||
if(GetConsoleWindow())
|
||||
{
|
||||
nErrorCount += lpMsgProcessMgr->Register(WM_COMMAND,
|
||||
new CProcessCOMMAND(*GetConsoleWindow())) ? 0 : 1;
|
||||
}
|
||||
}
|
||||
|
||||
return (0 == nErrorCount);
|
||||
}
|
||||
348
Server/ManageTool/ManageServer/ManageServer.cpp
Normal file
348
Server/ManageTool/ManageServer/ManageServer.cpp
Normal file
@@ -0,0 +1,348 @@
|
||||
#include "stdafx.h"
|
||||
#include "resource.h"
|
||||
#include "ManageServer.h"
|
||||
|
||||
#include <shellapi.h>
|
||||
|
||||
#include <Thread/Lock.h> // CNamedMutex
|
||||
#include <Log/ServerLog.h>
|
||||
#include <Utility/Debug/ExceptionReport.h> // g_CExceptionReport
|
||||
#include <Utility/Time/Pulse/Pulse.h>
|
||||
|
||||
#include <Network/Session/CreatePolicy.h>
|
||||
#include <Network/Session/Session.h>
|
||||
#include <Network/IOCP/IOCPNet.h>
|
||||
|
||||
#include <Network/Dispatch/SingleDispatchStorage.h>
|
||||
#include <Network/Dispatch/ManageServer/ManageServerDispatch.h>
|
||||
#include <Network/Dispatch/ManageServer/ManageToolServerDispatch.h>
|
||||
#include <Network/Dispatch/ManageServer/StatServerMultiDispatch.h>
|
||||
#include <Utility/ServerAppFramework/MsgProc/MsgProc.h>
|
||||
|
||||
#include <Network/Packet/ManagePacketCmd.h>
|
||||
#include <Network/Packet/WrapPacket.h>
|
||||
#include <Network/Dispatch/SendManagePacket.h>
|
||||
|
||||
#include <Pattern/CommandQueue.h>
|
||||
#include <DB/ManageServerDB.h>
|
||||
|
||||
#include <Utility/Setup/ServerSetup.h>
|
||||
#include <UserManage/UserStatistics.h>
|
||||
#include <Setup/RylServerGroupSetup.h>
|
||||
|
||||
#include <Stream/Buffer/Buffer.h>
|
||||
#include <UserManage/ToolUserManageTable.h>
|
||||
|
||||
|
||||
int WINAPI ExceptionUserFunc(char* szBuffer, int nBufferLen)
|
||||
{
|
||||
g_Log.Flush();
|
||||
g_SessionLog.Flush();
|
||||
|
||||
return _snprintf(szBuffer, nBufferLen, "Exception Occured. Flush all buffers.");
|
||||
}
|
||||
|
||||
|
||||
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
|
||||
{
|
||||
CNamedMutex Mutex("ManageServer", TRUE);
|
||||
|
||||
if(GetLastError() == ERROR_ALREADY_EXISTS)
|
||||
{
|
||||
ERRLOG0(g_Log, "ManageServer already server operating now. please shutdown and restart");
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned long dwExceptionFeatures = CExceptionReport::CATCH_EXCEPTION |
|
||||
CExceptionReport::USE_MINIDUMP | CExceptionReport::USE_REPORT;
|
||||
|
||||
CExceptionReport::GetInstance().Enable(dwExceptionFeatures);
|
||||
CExceptionReport::GetInstance().SetUserFunc(ExceptionUserFunc);
|
||||
|
||||
CManageServer& ManageServer = CManageServer::GetInstance();
|
||||
|
||||
if(ManageServer.Initialize(hInstance, "ManageServer", lpCmdLine,
|
||||
IDI_MANAGESERVER, IDC_MANAGESERVER))
|
||||
{
|
||||
ManageServer.ProcessMessage();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
class CManageServerProcessThread : public CProcessThread
|
||||
{
|
||||
public:
|
||||
|
||||
enum Const
|
||||
{
|
||||
PROCESS_TPP = 200, ///< 200ms(0.2<EFBFBD><EFBFBD>) <20><> 1ƽ.
|
||||
TPP_PER_SEC = 1000 / PROCESS_TPP,
|
||||
CONNECT_CHECK = 2 * TPP_PER_SEC, ///< 2<>ʸ<EFBFBD><CAB8><EFBFBD> <20><><EFBFBD><EFBFBD> üũ
|
||||
PRINT_CONSOLE = 2 * TPP_PER_SEC, ///< 2<>ʸ<EFBFBD><CAB8><EFBFBD> <20>ܼ<EFBFBD>â <20><><EFBFBD><EFBFBD>
|
||||
STATSERVER_CONNECT = 30 * TPP_PER_SEC, ///< 30<33>ʸ<EFBFBD><CAB8><EFBFBD> <20><><EFBFBD>輭<EFBFBD><E8BCAD> <20><><EFBFBD><EFBFBD>
|
||||
HANGAME_USERNUM = 300 * TPP_PER_SEC, ///< 10<31><30>(600<30><30>)<29><><EFBFBD><EFBFBD> <20>Ѱ<EFBFBD><D1B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DEBD><EFBFBD> <20><><EFBFBD><EFBFBD>.
|
||||
STATSERVER_USERNUM = 600 * TPP_PER_SEC ///< 10<31>и<EFBFBD><D0B8><EFBFBD> <20><><EFBFBD>輭<EFBFBD><E8BCAD><EFBFBD><EFBFBD> <20><>Ŷ <20><><EFBFBD><EFBFBD>.
|
||||
};
|
||||
|
||||
CManageServerProcessThread(CManageServer& ManageServer)
|
||||
: CProcessThread(ManageServer, PROCESS_TPP),
|
||||
m_ManageServer(ManageServer)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
virtual void Cleanup(CPulse& Pulse)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
virtual void InternalRun(CPulse& Pulse)
|
||||
{
|
||||
unsigned long dwCurrentPulse = Pulse.GetCurrentPulse();
|
||||
|
||||
if(0 == (dwCurrentPulse % CONNECT_CHECK))
|
||||
{
|
||||
|
||||
}
|
||||
if(0 == (dwCurrentPulse % PRINT_CONSOLE))
|
||||
{
|
||||
m_ManageServer.UpdateConsole();
|
||||
}
|
||||
if(0 == (dwCurrentPulse % HANGAME_USERNUM))
|
||||
{
|
||||
CUserStatistics::GetInstance().SendStatisticsToHanGame();
|
||||
}
|
||||
if(0 == (dwCurrentPulse % STATSERVER_USERNUM))
|
||||
{
|
||||
CUserStatistics::GetInstance().SendStatisticsToStatServer();
|
||||
}
|
||||
if(0 == (dwCurrentPulse % STATSERVER_CONNECT))
|
||||
{
|
||||
m_ManageServer.ConnectToStatServer();
|
||||
}
|
||||
}
|
||||
|
||||
CManageServer& m_ManageServer;
|
||||
};
|
||||
|
||||
|
||||
CManageServer& CManageServer::GetInstance()
|
||||
{
|
||||
static CManageServer manageServer;
|
||||
return manageServer;
|
||||
}
|
||||
|
||||
|
||||
CManageServer::CManageServer()
|
||||
: m_lpServerSessionPolicy(SessionPolicy::CreateTCPPolicy<CManageServerDispatch>()),
|
||||
m_lpToolSessionPolicy(SessionPolicy::CreateTCPPolicy<CManageToolServerDispatch>()),
|
||||
m_lpStatServerSessionPolicy(SessionPolicy::CreateTCPPolicy<CStatServerMultiDispatch>()),
|
||||
m_lpCommandQueueThread(0)
|
||||
{
|
||||
/*
|
||||
m_lpMyBuffer = CREATE_BUFFER(
|
||||
m_lpToolSessionPolicy->GetBufferFactory(), sizeof(ServerManage::StatServerStatus));
|
||||
*/
|
||||
}
|
||||
|
||||
CManageServer::~CManageServer()
|
||||
{
|
||||
//SAFE_RELEASE_BUFFER(m_lpMyBuffer);
|
||||
|
||||
if(0 != m_lpServerSessionPolicy)
|
||||
{
|
||||
m_lpServerSessionPolicy->Release();
|
||||
m_lpServerSessionPolicy = 0;
|
||||
}
|
||||
|
||||
if(0 != m_lpToolSessionPolicy)
|
||||
{
|
||||
m_lpToolSessionPolicy->Release();
|
||||
m_lpToolSessionPolicy = 0;
|
||||
}
|
||||
}
|
||||
|
||||
bool CManageServer::ApplicationSpecificInit(const TCHAR* szCmdLine)
|
||||
{
|
||||
const TCHAR* szErrorMessage = 0;
|
||||
|
||||
if(!CManageServerDB::GetInstance().Initialize())
|
||||
{
|
||||
// <20><><EFBFBD><EFBFBD> DB<44>ε<EFBFBD> <20><> <20>ʱ<EFBFBD>ȭ <20><><EFBFBD><EFBFBD>
|
||||
szErrorMessage = _T("ManageServerDB initialize failed");
|
||||
}
|
||||
else if(!GetIOCPNet()->AddListener(m_lpToolSessionPolicy, 0,
|
||||
CServerSetup::ManageServerManageToolListen))
|
||||
{
|
||||
szErrorMessage = _T("ToolSessionListener add failed");
|
||||
}
|
||||
else if(!GetIOCPNet()->AddListener(m_lpServerSessionPolicy, 0,
|
||||
CServerSetup::ManageServerManageClientListen))
|
||||
{
|
||||
szErrorMessage = _T("ManageServerListener add failed");
|
||||
}
|
||||
else if(!AddProcessThread(new CManageServerProcessThread(*this)))
|
||||
{
|
||||
szErrorMessage = _T("AddProcessThread failed(ManageServerProcessThread)");
|
||||
}
|
||||
else if(0 == (m_lpCommandQueueThread = new CCommandQueueThread))
|
||||
{
|
||||
szErrorMessage = _T("CCommandQueueThread create failed");
|
||||
}
|
||||
else if(!m_lpCommandQueueThread->IsValid())
|
||||
{
|
||||
szErrorMessage = _T("CCommandQueueThread is Invalid");
|
||||
}
|
||||
else if(!AddProcessThread(m_lpCommandQueueThread))
|
||||
{
|
||||
szErrorMessage = _T("AddProcessThread failed(CCommandQueueThread)");
|
||||
}
|
||||
else if(!InitializeMsgProc())
|
||||
{
|
||||
szErrorMessage = _T("Initialize message proc failed");
|
||||
}
|
||||
else if(!InitializeCommand())
|
||||
{
|
||||
szErrorMessage = _T("Initialize command failed");
|
||||
}
|
||||
|
||||
if(!ConnectToStatServer())
|
||||
{
|
||||
ERRLOG0(g_Log, "StatServer connection failed");
|
||||
}
|
||||
|
||||
if(0 != szErrorMessage)
|
||||
{
|
||||
ERRLOG2(g_Log, "this:0x%p/%s", this, szErrorMessage);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void CManageServer::UpdateConsole()
|
||||
{
|
||||
const int MAX_INFO = 4096;
|
||||
const int MAX_BUFFER = 512;
|
||||
|
||||
char szInfo[MAX_INFO];
|
||||
|
||||
char szGlobalStatServerIP[MAX_BUFFER], szLocalStatServerIP[MAX_BUFFER];
|
||||
|
||||
GetPrivateProfileString("STATSERVER_INFO", "STAT_SERVER_1ST_IP", 0,
|
||||
szGlobalStatServerIP, MAX_BUFFER, CRylServerGroupSetup::GetInstance().GetSetupFileName());
|
||||
|
||||
GetPrivateProfileString("STATSERVER_INFO", "STAT_SERVER_2ND_IP", 0,
|
||||
szLocalStatServerIP, MAX_BUFFER, CRylServerGroupSetup::GetInstance().GetSetupFileName());
|
||||
|
||||
GET_MULTI_DISPATCH(lpGlobalStatDispatch, inet_addr(szGlobalStatServerIP),
|
||||
CStatServerMultiDispatch, CStatServerMultiDispatch::GetDispatchTable());
|
||||
|
||||
GET_MULTI_DISPATCH(lpLocalStatDispatch, inet_addr(szLocalStatServerIP),
|
||||
CStatServerMultiDispatch, CStatServerMultiDispatch::GetDispatchTable());
|
||||
|
||||
char szStatServerState[MAX_BUFFER];
|
||||
_snprintf(szStatServerState, MAX_BUFFER,
|
||||
"StatServer(1ST) : %s (%s:%d)\r\nStatServer(2ND) : %s (%s:%d)",
|
||||
(NULL != lpGlobalStatDispatch) ? "Connected " : "Disconnected",
|
||||
szGlobalStatServerIP, CServerSetup::StatServerManageServerListen,
|
||||
(NULL != lpLocalStatDispatch) ? "Connected " : "Disconnected",
|
||||
szLocalStatServerIP, CServerSetup::StatServerManageServerListen);
|
||||
|
||||
int nLength = _snprintf(szInfo, MAX_INFO - 1,
|
||||
"[ROW Manager Server]\r\n\r\nTotal Player Num : %d\r\n\r\n%s",
|
||||
CUserStatistics::GetInstance().GetTotalUserNum(), szStatServerState);
|
||||
|
||||
if(0 < nLength && nLength < MAX_INFO)
|
||||
{
|
||||
szInfo[nLength] = 0;
|
||||
PrintInfo(szInfo);
|
||||
}
|
||||
|
||||
// ManageTool<6F><6C> <20><><EFBFBD>輭<EFBFBD><E8BCAD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>.
|
||||
const int nSize = sizeof(PktBase) + (sizeof(bool) * 2);
|
||||
char szBuffer[nSize];
|
||||
|
||||
ServerManage::StatServerStatus* lpStatServerStatus =
|
||||
reinterpret_cast<ServerManage::StatServerStatus*>(szBuffer);
|
||||
|
||||
lpStatServerStatus->m_bGlobalStatServerOK = (NULL != lpGlobalStatDispatch) ? true : false;
|
||||
lpStatServerStatus->m_bLocalStatServerOK = (NULL != lpLocalStatDispatch) ? true : false;
|
||||
|
||||
if (PacketWrap::WrapHeader(szBuffer, nSize, ServerManage::CMD::StatServerStatus, 0, 0))
|
||||
{
|
||||
CToolUserManager::GetInstance().SendToAllLoginUser(
|
||||
szBuffer, nSize, ServerManage::CMD::StatServerStatus);
|
||||
}
|
||||
}
|
||||
|
||||
bool CManageServer::ConnectToStatServer()
|
||||
{
|
||||
const char* szSetupFileName = CRylServerGroupSetup::GetInstance().GetSetupFileName();
|
||||
|
||||
unsigned int dwSendToGlobalStatServer =
|
||||
GetPrivateProfileInt("STATSERVER_INFO", "SEND_STAT_SERVER_1ST", 0, szSetupFileName);
|
||||
|
||||
unsigned int dwSendToLocalStatServer =
|
||||
GetPrivateProfileInt("STATSERVER_INFO", "SEND_STAT_SERVER_2ND", 0, szSetupFileName);
|
||||
|
||||
if((0 == dwSendToGlobalStatServer) && (0 == dwSendToLocalStatServer))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
CIOCPNet* lpIOCP = GetIOCPNet();
|
||||
|
||||
if(0 != lpIOCP && 0 != m_lpStatServerSessionPolicy)
|
||||
{
|
||||
const int MAX_BUFFER = 256;
|
||||
char szGlobalStatServerIP[MAX_BUFFER], szLocalStatServerIP[MAX_BUFFER];
|
||||
|
||||
GetPrivateProfileString("STATSERVER_INFO", "STAT_SERVER_1ST_IP", 0,
|
||||
szGlobalStatServerIP, MAX_BUFFER, szSetupFileName);
|
||||
GetPrivateProfileString("STATSERVER_INFO", "STAT_SERVER_2ND_IP", 0,
|
||||
szLocalStatServerIP, MAX_BUFFER, szSetupFileName);
|
||||
|
||||
if(0 == strcmp(szGlobalStatServerIP, szLocalStatServerIP))
|
||||
{
|
||||
ERRLOG2(g_Log, "StatServer Setup Error : 1ST_IP %s, 2ND_IP %s",
|
||||
szGlobalStatServerIP, szLocalStatServerIP);
|
||||
return false;
|
||||
}
|
||||
|
||||
// <20>ѱ<EFBFBD> <20>۷ι<DBB7> <20><><EFBFBD>輭<EFBFBD><E8BCAD> <20><><EFBFBD><EFBFBD>
|
||||
GET_MULTI_DISPATCH(lpGlobalStatDispatch, inet_addr(szGlobalStatServerIP),
|
||||
CStatServerMultiDispatch, CStatServerMultiDispatch::GetDispatchTable());
|
||||
|
||||
if((NULL == lpGlobalStatDispatch) && (1 == dwSendToGlobalStatServer))
|
||||
{
|
||||
if(!lpIOCP->Connect(m_lpStatServerSessionPolicy,
|
||||
szGlobalStatServerIP, CServerSetup::StatServerManageServerListen))
|
||||
{
|
||||
ERRLOG2(g_Log, "Failed to connect StatServer_1st - IP(Port): %s(%d)",
|
||||
szGlobalStatServerIP, CServerSetup::StatServerManageServerListen);
|
||||
}
|
||||
}
|
||||
|
||||
// <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>輭<EFBFBD><E8BCAD> <20><><EFBFBD><EFBFBD>
|
||||
GET_MULTI_DISPATCH(lpLocalStatDispatch, inet_addr(szLocalStatServerIP),
|
||||
CStatServerMultiDispatch, CStatServerMultiDispatch::GetDispatchTable());
|
||||
|
||||
if((NULL == lpLocalStatDispatch) && (1 == dwSendToLocalStatServer))
|
||||
{
|
||||
if(!lpIOCP->Connect(m_lpStatServerSessionPolicy,
|
||||
szLocalStatServerIP, CServerSetup::StatServerManageServerListen))
|
||||
{
|
||||
ERRLOG2(g_Log, "Failed to connect StatServer_2nd - IP(Port): %s(%d)",
|
||||
szLocalStatServerIP, CServerSetup::StatServerManageServerListen);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
41
Server/ManageTool/ManageServer/ManageServer.h
Normal file
41
Server/ManageTool/ManageServer/ManageServer.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#ifndef _RYL_GM_NETWORK_MANAGE_SERVER_H_
|
||||
#define _RYL_GM_NETWORK_MANAGE_SERVER_H_
|
||||
|
||||
#include <Utility/ServerAppFramework/ServerWindowFramework.h>
|
||||
|
||||
|
||||
// forward decl.
|
||||
class CBuffer;
|
||||
class CSessionPolicy;
|
||||
class CCommandQueueThread;
|
||||
|
||||
|
||||
class CManageServer : public CServerWindowFramework
|
||||
{
|
||||
public:
|
||||
|
||||
static CManageServer& GetInstance();
|
||||
|
||||
void UpdateConsole();
|
||||
bool ConnectToStatServer();
|
||||
|
||||
private:
|
||||
|
||||
CManageServer();
|
||||
virtual ~CManageServer();
|
||||
|
||||
virtual bool ApplicationSpecificInit(const TCHAR* szCmdLine);
|
||||
bool InitializeMsgProc();
|
||||
bool InitializeCommand();
|
||||
|
||||
CSessionPolicy* m_lpServerSessionPolicy;
|
||||
CSessionPolicy* m_lpToolSessionPolicy;
|
||||
CSessionPolicy* m_lpStatServerSessionPolicy;
|
||||
|
||||
CCommandQueueThread* m_lpCommandQueueThread;
|
||||
|
||||
//CBuffer* m_lpMyBuffer;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
BIN
Server/ManageTool/ManageServer/ManageServer.ico
Normal file
BIN
Server/ManageTool/ManageServer/ManageServer.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
144
Server/ManageTool/ManageServer/ManageServer.rc
Normal file
144
Server/ManageTool/ManageServer/ManageServer.rc
Normal file
@@ -0,0 +1,144 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#define APSTUDIO_HIDDEN_SYMBOLS
|
||||
#include "windows.h"
|
||||
#undef APSTUDIO_HIDDEN_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// <20>ѱ<EFBFBD><D1B1><EFBFBD> resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_KOR)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
|
||||
#pragma code_page(949)
|
||||
#endif //_WIN32
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
IDI_MANAGESERVER ICON "ManageServer.ico"
|
||||
IDI_SMALL ICON "small.ico"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Menu
|
||||
//
|
||||
|
||||
IDC_MANAGESERVER MENU
|
||||
BEGIN
|
||||
POPUP "Menu"
|
||||
BEGIN
|
||||
POPUP "Console(&C)"
|
||||
BEGIN
|
||||
MENUITEM "Open Console(&O)", ID_MENU_OPENCONSOLE
|
||||
MENUITEM "Close Console(&C)", ID_MENU_CLOSECONSOLE
|
||||
END
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Connect To StatServer(&S)", ID_MENU_CONNECTTOSTATSERVER
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Flush(&F)", ID_MENU_FLUSH
|
||||
MENUITEM "Reload Setup(&R)", ID_MENU_RELOADSETUP
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Exit(&E)", IDM_EXIT
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Accelerator
|
||||
//
|
||||
|
||||
IDC_MANAGESERVER ACCELERATORS
|
||||
BEGIN
|
||||
"?", IDM_ABOUT, ASCII, ALT
|
||||
"/", IDM_ABOUT, ASCII, ALT
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_ABOUTBOX DIALOGEX 22, 17, 196, 45
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "ManagerServer Info."
|
||||
FONT 9, "System", 0, 0, 0x0
|
||||
BEGIN
|
||||
ICON IDI_MANAGESERVER,IDC_MYICON,14,11,16,16
|
||||
LTEXT "ManageServer <20><><EFBFBD><EFBFBD> 1.0",IDC_STATIC,49,10,79,8,
|
||||
SS_NOPREFIX
|
||||
LTEXT "Copyright (C) 2004",IDC_STATIC,49,20,61,8
|
||||
DEFPUSHBUTTON "OK",IDOK,147,9,44,11,WS_GROUP
|
||||
END
|
||||
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
|
||||
"#include ""windows.h""\r\n"
|
||||
"#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// String Table
|
||||
//
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_APP_TITLE "ManageServer"
|
||||
IDC_MANAGESERVER "MANAGESERVER"
|
||||
END
|
||||
|
||||
#endif // <20>ѱ<EFBFBD><D1B1><EFBFBD> resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
||||
176
Server/ManageTool/ManageServer/ManageServer.vcproj
Normal file
176
Server/ManageTool/ManageServer/ManageServer.vcproj
Normal file
@@ -0,0 +1,176 @@
|
||||
<?xml version="1.0" encoding="ks_c_5601-1987"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.10"
|
||||
Name="ManageServer"
|
||||
ProjectGUID="{3D232350-0138-4B1C-88F1-D26747CB01EA}"
|
||||
Keyword="Win32Proj">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="../Executable/$(ConfigurationName)"
|
||||
IntermediateDirectory="../Intermediate/$(ProjectName)/$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories="./;../;../../RylServerProject/BaseLibrary;../../RylServerProject/RylServerLibrary;../ManageLibrary"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
|
||||
MinimalRebuild="TRUE"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="2"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="FALSE"
|
||||
DebugInformationFormat="4"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="$(OutDir)/ManageServer.exe"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="TRUE"
|
||||
ProgramDatabaseFile="$(OutDir)/ManageServer.pdb"
|
||||
SubSystem="2"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="../Executable/$(ConfigurationName)"
|
||||
IntermediateDirectory="../Intermediate/$(ProjectName)/$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="./;../;../../RylServerProject/BaseLibrary;../../RylServerProject/RylServerLibrary;../ManageLibrary"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
|
||||
RuntimeLibrary="0"
|
||||
UsePrecompiledHeader="2"
|
||||
WarningLevel="3"
|
||||
Detect64BitPortabilityProblems="FALSE"
|
||||
DebugInformationFormat="3"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
OutputFile="$(OutDir)/ManageServer.exe"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="TRUE"
|
||||
SubSystem="2"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="<22>ҽ<EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
|
||||
<File
|
||||
RelativePath=".\ManageMsgProcess.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ManageServer.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ManageServerCommand.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\stdafx.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
|
||||
<File
|
||||
RelativePath=".\ManageServer.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Resource.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\stdafx.h">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="<22><><EFBFBD>ҽ<EFBFBD> <20><><EFBFBD><EFBFBD>"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
|
||||
<File
|
||||
RelativePath=".\ManageServer.ico">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ManageServer.rc">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\small.ico">
|
||||
</File>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath=".\ReadMe.txt">
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
51
Server/ManageTool/ManageServer/ManageServerCommand.cpp
Normal file
51
Server/ManageTool/ManageServer/ManageServerCommand.cpp
Normal file
@@ -0,0 +1,51 @@
|
||||
#include "stdafx.h"
|
||||
#include "ManageServer.h"
|
||||
#include <Log/ServerLog.h>
|
||||
#include <Utility/ServerAppFrameWork/ConsoleWindow/ConsoleCMDFactory.h>
|
||||
|
||||
#include <ServerManage/ManageClientManager.h>
|
||||
#include <UserManage/UserStatistics.h>
|
||||
|
||||
class CCMDPrintLog : public CConsoleCMDSingleton<CCMDPrintLog>
|
||||
{
|
||||
protected:
|
||||
virtual bool DoProcess()
|
||||
{
|
||||
SERLOG0(g_Log, "Flush log.");
|
||||
SERLOG0(g_SessionLog, "Flush log");
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
class CCMDReloadSetup : public CConsoleCMDSingleton<CCMDReloadSetup>
|
||||
{
|
||||
protected:
|
||||
virtual bool DoProcess()
|
||||
{
|
||||
CManageClientManager::GetInstance().ReloadRunInfo();
|
||||
CUserStatistics::GetInstance().Load();
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
bool CManageServer::InitializeCommand()
|
||||
{
|
||||
#define INIT_COMMAND_FAILED(detail) TEXT("Command create failed - "##detail)
|
||||
|
||||
#define ADD_COMMAND(cmdstring, cmdobject, errmsg_val) \
|
||||
if(0 == (errmsg_val) && !GetCommandFactory()->AddCommand(cmdstring, new cmdobject)) { \
|
||||
(errmsg_val) = INIT_COMMAND_FAILED(cmdstring); }
|
||||
|
||||
const TCHAR* szErrorMessage = 0;
|
||||
|
||||
ADD_COMMAND("flush", CCMDPrintLog, szErrorMessage);
|
||||
ADD_COMMAND("reload", CCMDReloadSetup, szErrorMessage);
|
||||
|
||||
if(0 != szErrorMessage)
|
||||
{
|
||||
ERRLOG0(g_Log, szErrorMessage);
|
||||
return false;
|
||||
};
|
||||
|
||||
return true;
|
||||
}
|
||||
53
Server/ManageTool/ManageServer/ReadMe.txt
Normal file
53
Server/ManageTool/ManageServer/ReadMe.txt
Normal file
@@ -0,0 +1,53 @@
|
||||
========================================================================
|
||||
Win32 <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> : ManageServer <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
|
||||
========================================================================
|
||||
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> <20><><EFBFBD><EFBFBD><EFBFBD>翡<EFBFBD><E7BFA1> <20><> ManageServer <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1><D7B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.
|
||||
<EFBFBD><EFBFBD> <20><><EFBFBD>Ͽ<EFBFBD><CFBF><EFBFBD> ManageServer <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1><D7B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ͽ<EFBFBD>
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ԵǾ<D4B5> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.
|
||||
|
||||
|
||||
ManageServer.vcproj
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> <20><><EFBFBD><EFBFBD><EFBFBD>縦 <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> VC++ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>⺻ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
<20>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Visual C++<2B><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͽ<EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> <20><><EFBFBD><EFBFBD><EFBFBD>翡<EFBFBD><E7BFA1> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>÷<EFBFBD><C3B7><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><>
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>ɿ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.
|
||||
|
||||
ManageServer.cpp
|
||||
<20>⺻ <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> <20>ҽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> <20><><EFBFBD><EFBFBD><EFBFBD>翡<EFBFBD><E7BFA1> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ҽ<EFBFBD><D2BD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.
|
||||
|
||||
ManageServer.rc
|
||||
<20><><EFBFBD>α<CEB1><D7B7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
Microsoft Windows <20><><EFBFBD>ҽ<EFBFBD><D2BD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>. RES <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><CDB8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><>Ʈ<EFBFBD><C6AE>, <20><> Ŀ<><C4BF> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD>Ե˴ϴ<CBB4>. <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Microsoft Visual C++<2B><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.
|
||||
|
||||
Resource.h
|
||||
<20><> <20><><EFBFBD>ҽ<EFBFBD> ID<49><44> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> ǥ<><C7A5> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
Microsoft Visual C++<2B><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>а<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>մϴ<D5B4>.
|
||||
ManageServer.ico
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1><D7B7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(32x32)<29><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>˴ϴ<CBB4>.
|
||||
<20>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>⺻ <20><><EFBFBD>ҽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ManageServer.rc<72><63> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>Ե˴ϴ<CBB4>.
|
||||
|
||||
small.ico
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>(16x16)<29><>
|
||||
<20><><EFBFBD><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>. <20>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>⺻ <20><><EFBFBD>ҽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ManageServer.rc<72><63> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>Ե˴ϴ<CBB4>.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
<EFBFBD><EFBFBD>Ÿ ǥ<><C7A5> <20><><EFBFBD><EFBFBD>:
|
||||
|
||||
StdAfx.h <20><> StdAfx.cpp<70><70>
|
||||
ManageServer.pch<63><68><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> PCH(<28≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD>) <20><><EFBFBD>ϰ<EFBFBD>
|
||||
StdAfx.obj<62><6A><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>˴ϴ<CBB4>.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
<EFBFBD><EFBFBD>Ÿ <20><><EFBFBD><EFBFBD>:
|
||||
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>α<CEB1> <20><><EFBFBD><EFBFBD><EFBFBD>翡<EFBFBD><E7BFA1> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> "TODO:" <20>ּ<EFBFBD><D6BC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ڰ<EFBFBD> <20>߰<EFBFBD><DFB0>ϰų<CFB0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD> <20>ϴ<EFBFBD>
|
||||
<EFBFBD>ҽ<EFBFBD> <20>ڵ<EFBFBD> <20>κ<EFBFBD><CEBA><EFBFBD> <20><>Ÿ<EFBFBD><C5B8><EFBFBD>ϴ<EFBFBD>.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
33
Server/ManageTool/ManageServer/resource.h
Normal file
33
Server/ManageTool/ManageServer/resource.h
Normal file
@@ -0,0 +1,33 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by ManageServer.rc
|
||||
//
|
||||
#define IDC_MYICON 2
|
||||
#define IDD_MANAGESERVER_DIALOG 102
|
||||
#define IDS_APP_TITLE 103
|
||||
#define IDD_ABOUTBOX 103
|
||||
#define IDM_ABOUT 104
|
||||
#define IDM_EXIT 105
|
||||
#define IDI_MANAGESERVER 107
|
||||
#define IDI_SMALL 108
|
||||
#define IDC_MANAGESERVER 109
|
||||
#define IDR_MAINFRAME 128
|
||||
#define ID_MENU_OPENCONSOLE 32771
|
||||
#define ID_MENU_CLOSECONSOLE 32772
|
||||
#define ID_MENU_RELOADSETUP 32773
|
||||
#define ID_MENU_CONSOLE 32774
|
||||
#define ID_MENU_CONNECTTOSTATSERVER 32776
|
||||
#define ID_MENU_FLUSH 32777
|
||||
#define IDC_STATIC -1
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NO_MFC 1
|
||||
#define _APS_NEXT_RESOURCE_VALUE 129
|
||||
#define _APS_NEXT_COMMAND_VALUE 32778
|
||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
||||
#define _APS_NEXT_SYMED_VALUE 110
|
||||
#endif
|
||||
#endif
|
||||
BIN
Server/ManageTool/ManageServer/small.ico
Normal file
BIN
Server/ManageTool/ManageServer/small.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
8
Server/ManageTool/ManageServer/stdafx.cpp
Normal file
8
Server/ManageTool/ManageServer/stdafx.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
// stdafx.cpp : ǥ<><C7A5> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ϸ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20>ҽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
// ManageServer.pch<63><68> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>˴ϴ<CBB4>.
|
||||
// stdafx.obj<62><6A><EFBFBD><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ե˴ϴ<CBB4>.
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
// TODO: <20>ʿ<EFBFBD><CABF><EFBFBD> <20>߰<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ƴ<EFBFBD> STDAFX.H<><48><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
18
Server/ManageTool/ManageServer/stdafx.h
Normal file
18
Server/ManageTool/ManageServer/stdafx.h
Normal file
@@ -0,0 +1,18 @@
|
||||
// stdafx.h : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʴ<EFBFBD>
|
||||
// ǥ<><C7A5> <20>ý<EFBFBD><C3BD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
// <20><><EFBFBD><EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Windows <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
// Windows <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
#include <windows.h>
|
||||
// C<><43> <20><>Ÿ<EFBFBD><C5B8> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.
|
||||
#include <stdlib.h>
|
||||
#include <malloc.h>
|
||||
#include <memory.h>
|
||||
#include <tchar.h>
|
||||
|
||||
// TODO: <20><><EFBFBD>α<CEB1><D7B7><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20>߰<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><E2BFA1> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
Reference in New Issue
Block a user