This commit is contained in:
aozhiwei 2023-04-24 14:09:08 +08:00
parent f2c578eff1
commit 82a2ccac2f
2 changed files with 21 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package cs;
//id定义 //id定义
enum CMMessageId_e enum CMMessageId_e
{ {
_CMKcpHandshake = 99;
_CMPing = 101; _CMPing = 101;
_CMJoin = 103; _CMJoin = 103;
@ -31,6 +32,7 @@ enum CMMessageId_e
enum SMMessageId_e enum SMMessageId_e
{ {
_SMKcpHandshake = 99;
_SMPing = 101; _SMPing = 101;
_SMRpcError = 102; _SMRpcError = 102;
_SMReconnect = 104; _SMReconnect = 104;

View File

@ -62,6 +62,25 @@ message SMPing
optional int32 param1 = 1; optional int32 param1 = 1;
} }
//kcp握手
message CMKcpHandshake
{
optional int32 proto_version = 1; //Constant_e.ProtoVersion
optional string account_id = 2; //id
optional string session_id = 3; //session id
optional string team_uuid = 4; //
}
message SMKcpHandshake
{
optional int32 errcode = 1; //errcode != 0kcp
optional string errmsg = 2; //errmsg
optional int32 conv = 3; //conv
optional bytes secret_key = 4; //secret key客户端每次上报的时候加在包头之前
optional string remote_host = 5; //host
optional int32 remote_port = 6; //port
}
//rpc调用错误 //rpc调用错误
message SMRpcError message SMRpcError
{ {