-
Notifications
You must be signed in to change notification settings - Fork 189
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
Sending data and file descriptors at the same time #541
Comments
I'm sorry but I don't understand this proposal a bit. Where can I find |
I apologize, I forgot the words aren't completely spelled. I was attempting to refer to NullSockAddr. |
OK. I understand. Which do you prefer:
|
If I could only choose one, I'd prefer the second. |
OK. Would you make a PR including the followings?
|
Sounds good, will do when I find some time. |
@chris-martin Gentle ping. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From my brief experimentation with Wayland, it has seemed like the Wayland server expects that when you send a message with a file descriptor parameter, it expects the message and the fd to be sent together in a single
sendmsg
call. Thenetwork
library presently does not have any explicit support for doing this.Currently, in my own code I have a copy of
NullSocketAddress
, which is internally defined in the network package but not exported.So then I can use
sendBufMsg
the way the network package does internally...... where
datas
contains the wayland message andcontrols
contains the file descriptor.Proposal one (nearly no effort): It would be nice if the network library simply exported the
NullSocketAddress
type so that I could use it instead of duplicating it.Proposal two (slightly more work): Some explicit support for sending data and file descriptors in a single call?
The text was updated successfully, but these errors were encountered: