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

粘包没有处理吗?如何没有的话,如何保证TCP包的正确性? #14

Open
wangguixi opened this issue Sep 16, 2017 · 1 comment

Comments

@wangguixi
Copy link

RT, thank you!

@wangguixi wangguixi changed the title 粘包没有处理吗?如何没有的话,如何包括TCP包的正确性? 粘包没有处理吗?如何没有的话,如何保证TCP包的正确性? Sep 17, 2017
@itnikc
Copy link

itnikc commented Nov 7, 2017

TCP的粘包处理我们已经在协议里定义了消息头和消息体且也规定了消息长度,如果你觉得不够,你可以在包尾加个特殊字符,比如换行符进行分割消息包。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants