-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
你好,请问一下如何确保数据发送完了? #28
Comments
write/send结束就能确保数据发送完了。我猜你想问的是如何确保对方接收到数据?这个是需要应用层的回包来确认的哈 |
那么,假设发送的数据很多。客户端如何确保数据发送/接受完了呢? |
应用层来保证,比如消息格式(比如我以某个特殊字符结束就表示我发完了,再比如我开头写一个64位的数字表示我数据包的长度,收满这么多就结束了) |
那个content-length表示的是什么呀? |
@grasslog 表示内容长度啊 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: