Skip to content
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 / recvmmg support #1786

Closed
esemeniuc opened this issue May 14, 2024 · 1 comment
Closed

sendmmsg / recvmmg support #1786

esemeniuc opened this issue May 14, 2024 · 1 comment

Comments

@esemeniuc
Copy link

A significant number of rust libraries interface with mio, and not having something like sendmmsg to batch syscalls results in more performance overhead than necessary. I saw #185, and I hope you'd reconsider since mio is so fundamental.

@Thomasdezeeuw
Copy link
Collaborator

Mio follows the same API as the standard library. You can use the vector I/O methods ofio::Read and io::Write with Mio, but it will not support {send,recv}mmsg (unless std lib starts to).

Socket2 (a different crate I also maintain) has the SockRef type which can be used with the try_io method on Mio types to perform more advanced I/O.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants