用2字节表示消息Length,修正令牌协议不能收发超过255字节数据的BUG
This commit is contained in:
parent
49de82a5e7
commit
8c2672b277
|
@ -9,9 +9,9 @@ class Message
|
|||
{
|
||||
public:
|
||||
byte Code; // 消息代码
|
||||
byte Length; // 数据长度
|
||||
bool Reply; // 是否响应指令
|
||||
bool Error; // 是否错误
|
||||
byte Reply:1; // 是否响应指令
|
||||
byte Error:1; // 是否错误
|
||||
ushort Length; // 数据长度
|
||||
byte* Data; // 数据。指向子类内部声明的缓冲区
|
||||
|
||||
void* State; // 其它状态数据
|
||||
|
|
Loading…
Reference in New Issue