文章分类 -  protobuf

摘要:在游戏开发中使用protobuf协议来传输数据,使用到extensions(extend)来定义拓展协议,本例中使用协议名称为Request,其他协议拓展Request。下面列出部分重要代码。 1、protobuf协议定义 //总请求 message Request { extensions 100 阅读全文
posted @ 2018-09-13 20:47 yushim 阅读(42) 评论(0) 推荐(0)