Re: Launchd daemon / user app communication
Re: Launchd daemon / user app communication
- Subject: Re: Launchd daemon / user app communication
- From: Jean Suisse <email@hidden>
- Date: Mon, 29 Apr 2013 21:10:13 +0200
Knowing that my system-wide launchd daemon is written in Objective-C and that I want to connect to is from an Objective-C application, what would be the best way to initiate two way communication?
I did some investigations in that area last month (having needs similar to yours) and it turns out that XPC is indeed the recommended way. However, the documentation (Daemons and Services Programming Guide) only deals with it in the framework of an XPC service (run in user context, needs its own plist, specific Xcode project, so not applicable). I mention it since you talk of a system-wide daemon.
On a side note, I would avoid using DOs, since they are most insecure. I believe Jens Alfke wrote some blog entry on distributed objects some time ago (but I couldn't find it again).
Jean
On Apr 29, 2013, at 10:16 AM, Rustam Muginov < email@hidden> wrote: The simplest Objective-C way to communicate would be distributed objects. It is not, of cause, the most secure way - but definitely the simpliest one.
XPC is based on DO, but has additional security features (e.g. for data validation) to make it safe to use between mutually-untrusted processes. (Again, this is my understanding from reading overview docs. I haven't used it myself.)
—Jens
-----------Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB) — UMR 6302
|
_______________________________________________
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