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

How to deal with half packet data? #5

Closed
giskook opened this issue Aug 19, 2015 · 4 comments
Closed

How to deal with half packet data? #5

giskook opened this issue Aug 19, 2015 · 4 comments

Comments

@giskook
Copy link

giskook commented Aug 19, 2015

Hello,
Is there a solution to detail with half packet data?
Thanks,
zhangkai

@gansidui
Copy link
Owner

Hi, gotcp provides a interface for read packet, you can customize the interface used to implement the function.

@burstzp
Copy link

burstzp commented Aug 24, 2015

读写异步,怎么保证,1条连接上的多个命令,这次命令就是这次命令的结果,貌似不对

@gansidui
Copy link
Owner

hi, yiguopan, 你这个只能在上层协议保证,比如在数据包里面加上命令字和序号。谁也没规定client的请求就一定会收到server的回包

@burstzp
Copy link

burstzp commented Aug 24, 2015

恩,你说的方案可行。

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

3 participants