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

feat: add ancillary data support #275

Merged
merged 16 commits into from
Jul 16, 2024
Merged

Conversation

AsakuraMizu
Copy link
Contributor

@AsakuraMizu AsakuraMizu commented Jul 8, 2024

This PR added support for control messages, or rather ancillary data.

Detail

  • compio-driver: new opcode RecvMsg and SendMsg
  • compio-net:
    • Add CMsgIter and CMsgBuilder helper to deal with control message
    • Add recv_msg, send_msg and vectored variant on Socket
    • Add set_socket_option on Socket
  • Add corresponding unit tests

@AsakuraMizu AsakuraMizu changed the title feat: sending and receiving ancillary data on UdpSocket feat: add ancillary data support Jul 15, 2024
@AsakuraMizu AsakuraMizu marked this pull request as ready for review July 15, 2024 07:26
@George-Miao George-Miao added package: net Related to compio-net package: driver Related to compio-driver enhancement New feature or request labels Jul 15, 2024
Copy link
Member

@Berrysoft Berrysoft left a comment

Choose a reason for hiding this comment

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

LGTM

@George-Miao George-Miao merged commit 56024ab into compio-rs:master Jul 16, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request package: driver Related to compio-driver package: net Related to compio-net
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants