• 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: Using Unix Domain Sockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Strange problem about connection got lost
  • Next by Date: The possible reasons for SOCK_DGRAM packet loss in PF_LOCAL domain
  • Previous by thread: Re: Strange problem about connection got lost
  • Next by thread: The possible reasons for SOCK_DGRAM packet loss in PF_LOCAL domain
  • Index(es):
    • Date
    • Thread