Repository navigation
Initial basic cmsg support for unix - #316
brunowonka wants to merge 4 commits into
Conversation
Thomasdezeeuw
left a comment
There was a problem hiding this comment.
I'm afraid this doesn't work at all on a number of platform, please see the CI failure. I'll do another round of review once those are fixed.
| use std::iter::FromIterator; | ||
|
|
||
| #[derive(Debug, Clone)] | ||
| struct MsgHdrWalker<B> { |
There was a problem hiding this comment.
Let's remove the generic parameter, we only need &[u8], same for the other structures.
There was a problem hiding this comment.
Tentatively keeping this parameter so we can reuse some logic between &[u8] and &mut [u8], but removed all the type parameters from the public API for now.
|
Thank you for looking, I'm working through the other platform problems here and I'll push as soon as I have things working so you can look through. |
Thomasdezeeuw
left a comment
There was a problem hiding this comment.
Not a complete review, but a start.
- Split recv_msg from recv_msg_from. - Introduce CmsgBuffer type.
|
Looking at this failure: Looks unrelated to this change? The macOS failure looks real though: |
|
Closing due to age. |
Also added
set_recv_ttlwhile I'm here to use in testing. The otherRECVxxx-type socket options might make more sense with control message support now.I went back and forth on the shape of the public API for this quite a bit, and I also don't have access to a Windows machine to check.
Fixes #313