MsgSend / Receive passing coid to other process best practic

Hi
After using MsgSend and MsgReive in one process i would like to use them in
2 differen processes.
(console app and photon app).

I would write a file (to ram disk) in my console app containing the
connection id and then read that file from my photon app.

Are there other ways to get the same result is is this the best and simplest
way to do it after all ?

Johan

(only platforms running microsoft need a reset button)

Sagaert Johan <sagaert.j@belgacom.net> wrote:

Hi
After using MsgSend and MsgReive in one process i would like to use them in
2 differen processes.
(console app and photon app).

I would write a file (to ram disk) in my console app containing the
connection id and then read that file from my photon app.

Are there other ways to get the same result is is this the best and simplest
way to do it after all ?

name_attach() and name_open() are worth looking at.

I’m not sure which application is sending and receiving the messages,
but if you want to have your Photon app receiving messages, I think there
might be a section in the Photon programmers guide about combining
regular IPC with a Photon program – that is probably worth looking at, too.

-David

QNX Training Services
http://www.qnx.com/services/training/
Please followup in this newsgroup if you have further questions.