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

ikcp_recv 一直返回 -2,一段时间后返回-3 #371

Open
NginxL opened this issue Sep 21, 2022 · 1 comment
Open

ikcp_recv 一直返回 -2,一段时间后返回-3 #371

NginxL opened this issue Sep 21, 2022 · 1 comment

Comments

@NginxL
Copy link

NginxL commented Sep 21, 2022

请教下,在ikcp有没有最佳实践,像tcp那样,遇到大包的时候,可以接收指定大小的包,还是需要控制ikcp_input的时机?kcp底层用recvfrom和sendto

@NginxL
Copy link
Author

NginxL commented Sep 21, 2022

可以用ikcp_peeksize检查下

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

1 participant