• 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: IPC between daemon -> non root app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IPC between daemon -> non root app?


  • Subject: Re: IPC between daemon -> non root app?
  • From: plumber <email@hidden>
  • Date: Tue, 15 Nov 2005 18:01:31 +0100


Thanks for your answer.

I never intentionally initiated communication from the daemon to the user
app. The CFMessagePort was setup as a direct result of a specific request
from the user app. This, at first sight at least, communication is always
initiated by the client user app. However, I do admit that I need the
daemon to notify the user app of interesting changes if the user app so
requested, like hardware plug/unplug events, change in the hardware state,
etc. I thought that a client request CFMessagePort would be the answer.
Given my need of the daemon having to notify a "registered" user app of
interesting events, how should I best proceed? If no user is logged on,
then the user app will never request to be notified of interesting events.
Each instance of the user app may request a new port to be setup, so I
assume this should take of multiple users.


Would the CFNotificationCenter type suit my needs? Or am I going in the
wrong direction entirely?


thanks,

Philip Lukidis

Would CFNotificationCenter work? Or CFSocket? I'll read up about these
types.


thanks,

Philip Lukidis

CFSocket

http://developer.apple.com/samplecode/CFLocalServer/CFLocalServer.html

CFNotificationCenter

http://lists.apple.com/archives/Cocoa-dev/2003/Jan/msg01994.html

Best Regards

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >RE: IPC between daemon -> non root app? (From: Philip Lukidis <email@hidden>)

  • Prev by Date: RE: IPC between daemon -> non root app?
  • Next by Date: Re: Mach message format/structure
  • Previous by thread: RE: IPC between daemon -> non root app?
  • Next by thread: Re: IPC between daemon -> non root app?
  • Index(es):
    • Date
    • Thread