• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Does sendmsg only work on AF_UNIX sockets?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Does sendmsg only work on AF_UNIX sockets? (From: Dave Camp <email@hidden>)

  • Prev by Date: Does sendmsg only work on AF_UNIX sockets?
  • Next by Date: Re: Does sendmsg only work on AF_UNIX sockets?
  • Previous by thread: Does sendmsg only work on AF_UNIX sockets?
  • Next by thread: Re: Does sendmsg only work on AF_UNIX sockets?
  • Index(es):
    • Date
    • Thread