www.pudn.com > [Server]Distribute.rar > ServerSystem.h
// ServerSystem.h: interface for the CServerSystem class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SERVERSYSTEM_H__FD3EBFC3_EE3D_4505_A5A1_24DA471D20AB__INCLUDED_)
#define AFX_SERVERSYSTEM_H__FD3EBFC3_EE3D_4505_A5A1_24DA471D20AB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define SERVERLISTNAME "DistributeServer_info.txt"
#define __DISTRIBUTESERVER__
#include "../4dyuchigxgfunc/global.h"
class CServerSystem
{
DWORD m_DBThreadID;
INDEXCR_HANDLE m_IdxCreater;
public:
DWORD m_DBThreadTerminate;
CServerSystem();
virtual ~CServerSystem();
void Process();
void Start(WORD ServerNum);
void End();
DWORD MakeAuthKey();
void ReleaseAuthKey(DWORD key);
};
extern CServerSystem * g_pServerSystem;
void OnConnectServerSuccess(DWORD dwIndex, void* pVoid);
void OnConnectServerFail(void* pVoid);
#endif // !defined(AFX_SERVERSYSTEM_H__FD3EBFC3_EE3D_4505_A5A1_24DA471D20AB__INCLUDED_)