Re: Does sendmsg only work on AF_UNIX sockets?
Re: Does sendmsg only work on AF_UNIX sockets?
- Subject: Re: Does sendmsg only work on AF_UNIX sockets?
- From: Josh Graessley <email@hidden>
- Date: Tue, 11 Nov 2008 13:08:49 -0800
That is correct, you can only send file descriptors via an AF_UNIX
socket.
However, sendmsg can be used to send data on any socket, not just
AF_UNIX.
-josh
On Nov 11, 2008, at 12:22 PM, Dave Camp wrote:
My test code seems to bear this out, but I though I should ask
anyway before giving up... if I want to send a file descriptor to
another process via sendmsg(), will that only work over a unix
domain socket, or is there some way to get that to work over a local
AF_INET socket?
Or, is there some other way of getting a file descriptor from one
process to another that I should be looking at (one that doesn't
require write access to the file system)?
Thanks,
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden