![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
protobuf
文章平均质量分 81
醉从零
这个作者很懒,什么都没留下…
展开
-
netty5+protobuf
最近想使用netty和protobuf搞个游戏的协议层框架,找了好多文章,解码器分发这部分的例子很少,抽了时间设计了一个,大神来给提提意见。服务器package server;import io.netty.bootstrap.ServerBootstrap; import io.netty.channel.ChannelFuture; import io.netty.channel.Channel原创 2017-09-18 19:37:55 · 664 阅读 · 0 评论 -
netty+protobuf使用netty自带编解码器完成多种协议格式分发
proto文件 Example.proto package example2.proto; message BaseData { required Header header = 1; extensions 100 to 99999; } enum Header { //装备升级 Msg1001 = 1001; //装备穿戴 Msg1002 = 1002; //添加好友原创 2017-09-20 19:32:33 · 3849 阅读 · 1 评论