RE: IPC between daemon -> non root app?
RE: IPC between daemon -> non root app?
- Subject: RE: IPC between daemon -> non root app?
- From: Philip Lukidis <email@hidden>
- Date: Tue, 15 Nov 2005 14:25:06 -0500
Thanks for links, the CFLocalServer example is a great starting point.
Philip Lukidis
> -----Original Message-----
> From: plumber [mailto:email@hidden]
> 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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
uillemot.com
This email sent to email@hidden
_______________________________________________
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