Re: Using Unix Domain Sockets
Re: Using Unix Domain Sockets
- Subject: Re: Using Unix Domain Sockets
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Tue, 4 Jan 2011 09:26:24 +0000
On 30 Dec 2010, at 20:11, eveningnick eveningnick wrote:
> I am writing a daemon, that is controlled by GUI application using
> Unix Domain Sockets. I am wondering, what is the right approach to
> perform such a control [...]
The first thing to decide is whether to use datagram or stream sockets. The problem with datagrams is that you can't be guaranteed that the datagram was delivered. Datagram UNIX domain sockets can drop datagrams, much like UDP sockets, and you have to handle that case. In contrast, stream based sockets will either guarantee to deliver the data or eventually drop the connection. This behaviour may be advantageous to you, depending on your other requirements.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
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