From e691ce2f877ff7df94d264f45336186cd941c034 Mon Sep 17 00:00:00 2001 From: zhangshanxue Date: Fri, 20 Nov 2020 15:47:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=A8=E6=9C=8D=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E9=80=9A=E4=BF=A1=E5=88=9D=E7=89=88=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gtGprotos/GlobalProto.proto | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 gtGprotos/GlobalProto.proto diff --git a/gtGprotos/GlobalProto.proto b/gtGprotos/GlobalProto.proto new file mode 100644 index 0000000..b94d3e9 --- /dev/null +++ b/gtGprotos/GlobalProto.proto @@ -0,0 +1,23 @@ +package com.rpc.global; + +option optimize_for = SPEED; + + +// request 编号需要小于 response 编号 + + + message getWorldServerRequest{ + optional int32 serverID = 1; + } + + message getWorldServerResponse{ + optional string ip = 1; + optional string port = 2; + optional int32 group =3;//分组 全服唯一worldId*10000+index; + } + + + + + + \ No newline at end of file