Re: Abstract sockets?
Re: Abstract sockets?
- Subject: Re: Abstract sockets?
- From: Jack Brindle <email@hidden>
- Date: Wed, 11 Mar 2015 13:49:53 -0700
I would respond with the statement that Linux is not Unix, but OS X is. There are many things in Linux that have been extended beyond the Unix definitions or otherwise go in a different direction. It appears that the abstract sockets code is one of these. Perhaps the real solution if you want to maintain compatibility is to use something that is actually common. Your code, right?
> On Mar 11, 2015, at 1:41 PM, Rick Mann <email@hidden> wrote:
>
> Yes, OS X has Unix Domain Sockets, but does not appear to have "abstract" sockets, as described in the unix man page: http://man7.org/linux/man-pages/man7/unix.7.html
>
> In any case, it turns out I don't actually need this support on OS X, so it's moot.
>
>> On Mar 11, 2015, at 13:28 , Jack Brindle <email@hidden> wrote:
>>
>> Unix Domain Sockets are common to both Mac and Linux. These have been used for many years very successfully on both platforms. Apple used to have a pretty good sample app that makes use of them - may still have, but a search just now doesn’t show it. Perhaps Quinn might have info on its current availability.
>>
>> The only “problem” with Unix Domain Sockets is that they are one-to-one. As with all socket connections, the first reader gets the packet. If you need something that multiple readers can get, then something else is needed. Otherwise, this is a very good solution to IPC.
>>
>> - Jack Brindle
>>
>>
>>
>>> On Mar 11, 2015, at 11:23 AM, Rick Mann <email@hidden> wrote:
>>>
>>> In this case, my need was to use an SDK from Linux on my Mac so I could do most of the development on the Mac, but in the end run on the (embedded) Linux system.
>>>
>>>> On Mar 11, 2015, at 11:09 , Shawn Erickson <email@hidden> wrote:
>>>>
>>>> When I see a quest like this I often found it is better to step back and ask what your real need is? What are you trying to do? etc. On Mac OS X the primary method – these days – for IPC is to leverage XPC.
>>>>
>>>> xpc(3) Mac OS X Developer Tools Manual Page
>>>> unix(4) Mac OS X Manual Page - Apple Developer
>>>>
>>>> (note the following TN doesn't look update for XPC)
>>>> UNIX Domain Sockets Are Your Friend
>>>>
>>>>
>>>> On Wed, Mar 11, 2015 at 4:04 AM, Rick Mann <email@hidden> wrote:
>>>> Any chance OS X supports (or would support) abstract sockets?
>>>>
>>>> http://man7.org/linux/man-pages/man7/unix.7.html
>>>>
>>>> --
>>>> Rick Mann
>>>> 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
>>>>
>>>
>>>
>>> --
>>> Rick Mann
>>> 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
>>
>
>
> --
> Rick Mann
> 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