IPC Questions
IPC Questions
- Subject: IPC Questions
- From: "Sean Morrell" <email@hidden>
- Date: Sun, 25 Nov 2001 22:24:49 -0800
I need two processes communicating with an IPC. These processes are not
in a parent/child relationship and will startup and shutdown
independently. So both processes will need to rendezvous by using the
same IPC key when creating or opening an IPC object such as a message
queue or shared memory. How do I ensure the IPC key is unique and will
not conflict with an existing or future application?
Also, in creating a named pipe I need a pathname of the FIFO file to
create. I have been told that modifying a driver bundle is not possible,
so I guess the pipe cannot reside in the driver's kext. Is there a
standard location in the directory tree where FIFOs should reside? Or
should they be placed in the same path as the application? Note I believe
the path will need to be hardcoded in the driver kext at build time, since
I don't think it can be modified to reflect the installation path of the
software at install time.
Thanks,
Sean