mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
25 lines
499 B
Protocol Buffer
25 lines
499 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package GameProto;
|
|
// 常用协议
|
|
|
|
// 消息结果
|
|
message ProtoResult
|
|
{
|
|
int32 Ret =1; //操作结果,0 为成功, 其他为错误码
|
|
int32 ParamCnt =2; //文本参数数目
|
|
repeated string Params = 3;//Ret描述的文本参数
|
|
}
|
|
|
|
// 心跳请求
|
|
message CSHeatBeatReq
|
|
{
|
|
float HeatEchoTime = 1; //客户端的请求时间,服务器原包带回
|
|
}
|
|
|
|
// 心跳返回
|
|
message CSHeatBeatRes
|
|
{
|
|
float HeatEchoTime = 1; //客户端的请求时间,服务器原包带回
|
|
}
|