communication between processes

I am now working under Qnx4.25.I have several questiones.
1¡¢I am now working under node2.First I use qnx_name_attach(1,"/pid2")
successfully,second I use
qnx_name_locate(1,"/pid2") it return -1.

2¡¢I use shm_open() function to create a shared memory object ,How can
I use the memory at another node?

“summer” <gpjin@nairc.ac.cn> wrote in message
news:a5co69$fpf$1@inn.qnx.com

I am now working under Qnx4.25.I have several questiones.
1¡¢I am now working under node2.First I use
qnx_name_attach(1,"/pid2")
successfully,second I use
qnx_name_locate(1,"/pid2") it return -1.

Typicaly the qnx_name,_attach should be done on the node

you attach it to.

In your example. Why create a name on node 1 from node2?
The normal use is to run a program on node 1, attaching the name.
Then any other program on anoy other node can do
a qnx_name_locate without even specifying the node number.

2¡¢I use shm_open() function to create a shared memory object ,How
can
I use the memory at another node?

You cannot. Shared memory is meant to be used localy only.