-
Notifications
You must be signed in to change notification settings - Fork 267
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 do you signal that you could not consume all available bytes to read ? #82
Comments
I'm having the same issue. I've written a Go wrapper, and store reads in a buffer, and call |
there is no way to indicate that payload received by as for the The Please consider submitting a PR with improvements to the documentation! |
Thanks @arvidn , I'll see if implementing the |
This means the read buffer size will impact the read window. See bittorrent/libutp#82
I believe it did. It was a while ago. |
Hi I am trying to write bindings for this library exposing a classical BSD-style socket interface (by doing some buffering in between). I have some questions about the semantics of the
on_read
callback and theget_read_buffer_size
callback.on_read
callback is called each time there is available data on the socket. Is there any way to signal that the data passed to theon_read
callback has not been completely consumed by the upper layer, or should one always make a copy when it is not consumed right away ?get_read_buffer_size
callback supposed to return ?utp_read_drained
?Thanks!
The text was updated successfully, but these errors were encountered: