We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
比如头部是0xCAFE,framedecoder,不会按照这个头部去截取正确的帧,只是简单的按长度处理,如果上传的数据有的错误的,不按0xCAFE这个头部传,后续的数据都无法解析
The text was updated successfully, but these errors were encountered:
framedecoder只能处理断黏包,包的完整性,是需要业务校验的
Sorry, something went wrong.
好的,但是请问下我校验出来了,怎么丢弃错误的数据
framedecoder计算后的数据包,是符合你私有协议的数据包,只是你通过包头或者crc校验数据包是错误的,那么这个错误大概率是客户端发的一包错误数据,你直接丢弃,不做处理就行
No branches or pull requests
比如头部是0xCAFE,framedecoder,不会按照这个头部去截取正确的帧,只是简单的按长度处理,如果上传的数据有的错误的,不按0xCAFE这个头部传,后续的数据都无法解析
The text was updated successfully, but these errors were encountered: