shared memory across net?

Is it possible to access shared memory across a QNX network. Currently
we have several processes on a single machine that use shared memory
(i.e., shm_open(), mmap(), etc.) to share information. I would like to
gain access to the shared memory from another node on my QNX network.

I have tried this by using open() and setting the path to the other
machine //1/dev/shmem from //2/ but I get a bad file descriptor error
when I use mmap.

My question is: Is this possible? Am I making some mistake with mmap?
Or am I just off my rocker in thinking I can do this?

Any information would be greatly appreciated.

Thanks,
Weston Griffin
Graduate Research Assistant
Stanford University

“Weston Griffin” <wgriffin@stanford.edu> wrote in message
news:3B53586C.F3BD8248@stanford.edu

Is it possible to access shared memory across a QNX network. Currently
we have several processes on a single machine that use shared memory
(i.e., shm_open(), mmap(), etc.) to share information. I would like to
gain access to the shared memory from another node on my QNX network.

I have tried this by using open() and setting the path to the other
machine //1/dev/shmem from //2/ but I get a bad file descriptor error
when I use mmap.

My question is: Is this possible? Am I making some mistake with mmap?
Or am I just off my rocker in thinking I can do this?

Indeed you can’t do that.

However it’s possible to read the memory of another machine.
You can grab memdev on qnx ftp site and that will allow you to
seek()/read()/write() to anywhere in memory. You could
modify memdev to only give access to the share memory you want.
However access this this share memory cannot be done with pointer,
only with read()/write()

Any information would be greatly appreciated.

Thanks,
Weston Griffin
Graduate Research Assistant
Stanford University