I am new to OS X and must create an application that has 2 parts - a launch daemon and a launch agent. The daemon is about to do such things as executing commands, logging, etc., and must somehow pass these results to the launch agent (which will transfer them to the login element that displays the graphical user interface, although this will be the next step).
My question is: How do I achieve this communication ?. From what I have been able to compile so far after reading Apple documents, I prefer to use CFSockets. Is there an alternative (simpler) way? Does anyone have a sample tutorial / example / code that shows how to use CFSockets (I could not find)?
PS: My question may be a duplicate of this , but this question has not yet been answered, so I thought about publishing this post.
source share