`sendmmsg` documentation is incorrect
kalradivyanshu opened this issue · comments
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 use sendmmsg
.
Thanks!
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?