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_check返回的不是下次ikcp_update的时间戳,文档存在问题 #412

Open
Alan-yly opened this issue May 6, 2024 · 0 comments

Comments

@Alan-yly
Copy link
Contributor

Alan-yly commented May 6, 2024

企业微信截图_17149756072388
ikcp_check函数返回的应该是kcp发送缓冲区中下一个需要发送的包的时间戳,
在这个时间点调用ikcp_update 只会更新kcp->current 并不会调用ikcp_flush函数,所以在这个时间点调用ikcp_update函数并不能将需要发送的报文发送出去,所以调用ikcp_update函数没用,应该调用ikcp_flush函数才行吧?或者在ikcp_update函数添加一个force_flush参数才行。

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