| 程序包 | 说明 |
|---|---|
| net.hasor.rsf.protocol.rsf |
RSF 1.0协议 数据包编码器和解码器。
|
| net.hasor.rsf.protocol.rsf.v1 |
RSF 协议第一版,底层传输数据结构。
|
| 类和说明 |
|---|
| CodecAdapter
Protocol Interface,for custom network protocol
|
| ProtocolConstants
各种常量
一个RSF数据包头的定义如下:
第 1 个二进制位:表示是否为 RSF 数据包,合法的数据为 0x80 (1000 0000)
第 2 ~ 4 个二进制位:表示数据包的分类,加上包头合法的数据为 0x80 ~ 0xF0 (1000 0000 ~ 1111 0000)
最后的 4 个二进制位,用于表示该分类包的版本。
|
| 类和说明 |
|---|
| CodecAdapter
Protocol Interface,for custom network protocol
|
| Protocol
Protocol Interface,for custom network protocol
|
| ProtocolConstants
各种常量
一个RSF数据包头的定义如下:
第 1 个二进制位:表示是否为 RSF 数据包,合法的数据为 0x80 (1000 0000)
第 2 ~ 4 个二进制位:表示数据包的分类,加上包头合法的数据为 0x80 ~ 0xF0 (1000 0000 ~ 1111 0000)
最后的 4 个二进制位,用于表示该分类包的版本。
|
Copyright © 2020–2021. All rights reserved.