Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zgwit authored Aug 2, 2024
1 parent ba04703 commit 0c09095
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
| 标识 | 长度(位) | 说明 |
|----|----|----|
| 魔术字 | 16 | 0x1234 |
| 类型 | 4 | |
| 包长 | 20 | 0- 1MB |
| 包类型 | 4 | 1-15 |
| 包含数据 | 1 | 0-1 |
| 数据格式 | 3 | 0-7 |
| [数据长度] | 20 | 0- 1MB |


### 包类型
Expand All @@ -41,6 +43,18 @@
| | 14 | |
| DISCONNECT | 15 | 断开连接 |

### 数据格式

| 类型 | id | 说明 |
|----|----|----|
| Binary | 0 | 未定义 |
| JSON | 1 | |
| YAML | 2 | |
| XML | 3 | |
| CSV | 4 | |
| Protobuf | 5 | |
| MessagePack | 6 | |
| Reserved | 7 | 保留 |

## 交互说明

Expand Down

0 comments on commit 0c09095

Please sign in to comment.