⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bootmanager.h

📁 墨香最新私服
💻 H
字号:
// BootManager.h: interface for the CBootManager class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_BOOTMANAGER_H__682A3B42_83C6_4A98_9324_5618C58BA011__INCLUDED_)
#define AFX_BOOTMANAGER_H__682A3B42_83C6_4A98_9324_5618C58BA011__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define BOOTMNGR	USINGTON(CBootManager)

class CNetwork;
class CServerTable;
class CBootManager  
{
	SERVERINFO* GetServerInfoByIp(WORD ServerType,char* publicIp,char* privateIp);
	SERVERINFO* GetServerInfoByNum(WORD ServerType, WORD serverNum);
	BOOL CheckLinkServer(WORD SelfServerType,WORD ToServerType);

public:
	CBootManager();
	virtual ~CBootManager();

	void NotifyBootUpToMS(CNetwork * pNet);
	void BactchConnectToMap(CNetwork * pNet, CServerTable * pServerTable);
	BOOL ConnectToMS(CNetwork * pNet, CServerTable * pServerTable);


	BOOL StartServer(CNetwork * pNet, 	SERVERINFO * pSelfServerInfo);
	void AddBootList(CServerTable * pServerTable, SERVERINFO * pServerInfo);
	void AddSelfBootList(WORD MyServerKind, WORD MyServerNum,  CServerTable * pServerTable);
	BOOL RemoveBootList(CServerTable * pServerTable, WORD key);
	void UpdateBootList(CServerTable * pServerTable, SERVERINFO * pServerInfo, DWORD dwConnectionIdx);
	void SendConnectAckMsg(CNetwork * pNet, DWORD dwConnectionIndex, SERVERINFO * pServerInfo);
	void SendConnectSynMsg(CNetwork * pNet, DWORD dwConnectionIdxTo, CServerTable * pServerTable);
	void AddBootListINI(WORD MyServerKind, WORD MyServerNum,  CServerTable * pServerTable);
	void NetworkMsgParse(DWORD dwConnectionIndex, char* pMsg, DWORD dwLength);
	
	BOOL	ReadServerSetNum();
};
EXTERNGLOBALTON(CBootManager);
#endif // !defined(AFX_BOOTMANAGER_H__682A3B42_83C6_4A98_9324_5618C58BA011__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -