rustix
rustix copied to clipboard
Add support for sendmmsg(2) on linux
https://man7.org/linux/man-pages/man2/sendmmsg.2.html
Partially addresses #1156. I would've liked to add recvmmsg in the same PR, but it's actually much more complicated.
My test is unfortunately flaky, because of course the kernel can consolidate stream messages. Will fix tomorrow.
I think I addressed all your comments.
Hi, anything needed from me on this?
Sorry for pinging and then disappearing - was really sick :)
I rebased and addressed your comments. Please let me know how you'd like to resolve the overlap with #1004. It seems like I could use the updated SockAddrAny from that instead of RawSocketAddr.
Rebased on top of #1004 now that it's in main. The test failures look unrelated.
This patch is a lot smaller now!
The FreeBSD CI failure is fixed on main in https://github.com/bytecodealliance/rustix/pull/1322.
Thanks!
This is now released in rustix 1.0.0.