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

opcode: add RecvMsgMulti #201

Merged
merged 6 commits into from
Feb 19, 2023
Merged

Conversation

FrankReh
Copy link
Contributor

Adds the RecvMsgMulti opcode.

Updated the unit test to use it.

Also fixes the RecvMsg handling of the seq.flags field. It wouldn't have handled a fixed file descriptor.

Also improves the documentation to RecvMsg, to better describe the buf_group parameter and the Multi aspect of the operation.

@FrankReh FrankReh mentioned this pull request Feb 17, 2023
3 tasks
@FrankReh
Copy link
Contributor Author

I used some spacing in the documentation for the parameters. I don't know how that will look when it is actually rendered.

src/opcode.rs Outdated
#[derive(Debug)]
pub struct RecvMsgMulti {
fd: { impl sealed::UseFixed },
msg: { *mut libc::msghdr },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this doesn't strictly need to be mut.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks.

@FrankReh FrankReh requested a review from quininer February 18, 2023 11:55
@quininer quininer merged commit fb46dac into tokio-rs:master Feb 19, 2023
@FrankReh FrankReh deleted the frankreh/RecvMsgMulti branch February 19, 2023 03:17
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

Successfully merging this pull request may close these issues.

3 participants