GameSrv SSRS: Game Server Simple Software Requirements Specifications
Status of this Memo
This document specifies an standards track protocol for the Internet
community, and requests discussion and suggestions for improvements.
Distribution of this memo is unlimited.
This is only a draft!
这仅仅是一份讨论稿。
Copyright Notice
Copyright (C) GameSrv Team (2004). All Rights Reserved.
定义消息头如下:
typedef struct
{
long mGameId; //在一个游戏登记以后,server分给这个游戏的一个ID
long mTableId; //在登记一个Table以后,server分给的这个tableID
long mUserId; //全局的一个玩家ID
long mPlayId; //这个玩家在本游戏桌中的索引
long mDestMask; //用于处理需要转发的消息时,表明消息的目的地
long mMsgType; //消息类型(用枚举值定义)
long mMsgLength; //消息体(从这个不包括这个域以后的消息长度)
}GameMsgHeader;