33 lines
576 B
C
33 lines
576 B
C
#pragma once
|
|
|
|
enum SocketFrom_e
|
|
{
|
|
SF_GameGate,
|
|
};
|
|
|
|
enum InnerMesssage_e
|
|
{
|
|
IM_ClientSocketDisconnect = 100,
|
|
IM_ExecGM,
|
|
IM_GGListenerError
|
|
};
|
|
|
|
//网络处理对象
|
|
enum NetHandler_e
|
|
{
|
|
HID_Player,
|
|
HID_PlayerMgr,
|
|
HID_CacheMgr,
|
|
HID_GGListener,
|
|
};
|
|
|
|
const int MAX_NODE_ID = 8;
|
|
const int MAX_INSTANCE_ID = 500;
|
|
|
|
const int MAX_SYS_HTTP_NUM = 2;
|
|
const int MAX_USER_HTTP_NUM = 8;
|
|
const int MAX_ALL_HTTP_NUM = MAX_SYS_HTTP_NUM + MAX_USER_HTTP_NUM;
|
|
|
|
const char* const PROJ_NAME_FMT = "game%d_gameserver";
|
|
const char* const PROJ_ROOT_FMT = "/data/logs/%s";
|