I have been looking around for ways to communicate between an Objective-C daemon and an Objective-C cocoa application.
Currently, the daemon connects to a kext using control sockets. I wanted to use the same way of communication between the user app and the daemon (to re-use most of the code). However, I can't call ctl_register() from my daemon?
There could also be distributed object communication. But I am not familiar with it.
So, my question is:
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? The userland app's main purpose is to connect to the daemon, request statistics, wait to receive logging input from the daemon. One connection would be like Q/A initiated by the app, the other would be like connect and loop on recv() to get logging info.
Thanks for your replies. – E
|