update protocol

This commit is contained in:
Cam 2022-01-08 12:47:28 +08:00
parent 245a1291de
commit aaee2de166

View File

@ -2,6 +2,17 @@
## 包格式
```txt
___________________________________________________________________________
| | | | | |
| sequence_id | operation | protocol_version | header_size | package_size |
|_____________|___________|__________________|_____________|______________|
| |
| data |
| |
|_________________________________________________________________________|
```
包为 byte 数据,由头部和数据组成,字节序均为大端模式
头部长度为 16