Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

校验位2个字节 #1

Open
rqx110 opened this issue Oct 30, 2019 · 1 comment
Open

校验位2个字节 #1

rqx110 opened this issue Oct 30, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@rqx110
Copy link

rqx110 commented Oct 30, 2019

当前框架内固定校验位是1个字节,请问如果校验位是2个字节的时候,该怎么处理?
时候可以增加兼容情况。

@PeterRock
Copy link
Owner

PeterRock commented Oct 31, 2019

目前当HexProtocolAnalyzer无法满足协议要求时,最直接的实现方式是,继承该类,重写SearchResult方法。
2字节检验位和2字节数据长度标志位讲道理是同样的东西,现在也正在考虑如何抽象这个部分。目前HexProtocolAnalyzer类自身包含了如定长非常长数据包等特定协议格式,导致SearchResult职责过重,不利于对其理解并进行重写。

@PeterRock PeterRock added the enhancement New feature or request label Oct 31, 2019
@PeterRock PeterRock self-assigned this Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants