Re: File access questions

Kyle Sluder <[email protected]> Wed, 16 Nov 2011 12:18:54 -0800
Newsgroups gmane.comp.macosx.devel
Message-ID <CANEs-cy-NsnZ2wGhZ6JtA=o4FRcYkc-MyC8kVVPq=o--Nif-1Q@mail.gmail.com>
On Wed, Nov 16, 2011 at 12:03 PM, Nathan Sims
<[email protected]> wrote:
> Wow, I didn't know about Unix domain sockets, but this seems to be a perf=
ect fit. I can make the Cocoa process into a mini UDP server on a known sun=
_path, and the C processes can get the temp data from it by sending a reque=
st to the same sun_path and reading the response packet, all without connec=
ting. That should be a little more elegant than using files.

Technically it's not using UDP, since that's a protocol built on top
of IP (Internet Protocol) and thus only applicable to AF_INET sockets.
My guess is you want to use SOCK_SEQPACKET.

--Kyle Sluder

>
> Thanks!

You're welcome.

--Kyle Sluder