2

java | 自定义协议

 1 year ago
source link: https://benpaodewoniu.github.io/2023/01/27/java217/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

java | 自定义协议 | 犀牛的博客

姑苏城外一茅屋,万树梅花月满天

  • 魔数
    • 用来第一时间判别是否为无效包
  • 版本号
    • 支持协议升级
  • 序列化算法
    • 消息正文采用哪种序列化和反序列化
  • 指令类型
    • 登录、注册、单聊、群聊。。。
  • 请求序号
    • 双工通信,提供异步能力
请我喝杯咖啡吧~
Powered By Valine
v1.5.1
© 2023 犀牛
Hexo 强力驱动 v4.2.0
|
主题 – NexT.Pisces v7.7.2
158944 | 238998

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK