RE: IPC between daemon -> non root app?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thanks for links, the CFLocalServer example is a great starting point. Philip Lukidis
-----Original Message----- From: plumber [mailto:plumber@gnu-darwin.org] Sent: Tuesday, November 15, 2005 12:02 PM To: Darwin development list Subject: Re: IPC between daemon -> non root app?
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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/plukidis%40g uillemot.com
This email sent to plukidis@guillemot.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Philip Lukidis