-
Notifications
You must be signed in to change notification settings - Fork 661
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
sendmmsg
documentation is incorrect
#2030
Comments
kalradivyanshu
changed the title
May 2, 2023
sendmmsg
documentation is wrongsendmmsg
documentation is incorrect
sendmmsg is notoriously hard to use, and hard to bind in Rust. Nix has been through a few different versions. @pacak @rtzoeller could you please take a look? |
Derp. I totally forgot to update the documentation when updating |
Updated the docs in #2038 a bit, at least now it doesn't contradict to the type signature. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://docs.rs/nix/latest/nix/sys/socket/fn.sendmmsg.html is incorrect. The doc says that
sendmmsg
takes 3 arguments:Arguments
fd
: Socket file descriptordata
: Struct that implementsIntoIterator
withSendMmsgData
itemsflags
: Optional flags passed directly to the operating system.But it takes 6? And as far as I can tell
SendMmsgData
doesn't exist anymore? I would love a working example of how to usesendmmsg
.Thanks!
The text was updated successfully, but these errors were encountered: