Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - shared memory via Qnet : (2 Items)
   
shared memory via Qnet  
Hello, is thare any posibility to use Qnet with shared memory between two devices via ethernet ? I have a problem with 
mmap memory. I'm using QNX 6.5 SP1

master have data at shared memory

fd=shm_open(/net/master_name./dev/shmmem/database/test,	O_RDWR,0777); //ok
ftruncate(fd,sizeof(test_db)); //ok
mmap(0,struct_size,PROT_READ | PROT_WRITE,	MAP_SHARED,fd,0); //return (-1)  :(
Re: shared memory via Qnet  
Hello,

One of the limitations of qnet is that you can only access a shared 
memory object on the same machine it was created. But you could instead 
use a server to manage the shared memory on the remote note and have 
your client interact with it via messages.

For more details on the limitations of qnet please check out:

http://www.qnx.com/developers/docs/6.5.0_sp1/index.jsp?topic=%2Fcom.qnx.doc.neutrino_prog%2Fadv_qnet_topics.html&cp=
13_7_13_4&anchor=WHATWRWHATNT