mirror of
https://github.com/yulinfeng000/blive.git
synced 2026-08-19 08:43:28 +08:00
update protocol
This commit is contained in:
11
PROTOCOL.md
11
PROTOCOL.md
@@ -2,6 +2,17 @@
|
||||
|
||||
## 包格式
|
||||
|
||||
```txt
|
||||
___________________________________________________________________________
|
||||
| | | | | |
|
||||
| sequence_id | operation | protocol_version | header_size | package_size |
|
||||
|_____________|___________|__________________|_____________|______________|
|
||||
| |
|
||||
| data |
|
||||
| |
|
||||
|_________________________________________________________________________|
|
||||
```
|
||||
|
||||
包为 byte 数据,由头部和数据组成,字节序均为大端模式
|
||||
|
||||
头部长度为 16
|
||||
|
||||
Reference in New Issue
Block a user