UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

#1 2008-02-06 08:26 AM

bindaas
Member
Registered: 2008-01-18
Posts: 13

Re: Message queue

Hi All,

I have three processes A,B and C and using message queue to communicate.
Process A wants to send some data to process C and it does that, but this data reaches process B also which process A doesn't want. So what should process A should do so that the data should be accessed by process C only.
One way is putting the PID of process C in the message so that when process retrieve data from message queue they can compare pid and use the data. Is there any other way to avoid this before the pid can be compared and decided?

Offline

#2 2008-02-06 04:58 PM

jfriesne
Administrator
From: California
Registered: 2005-07-06
Posts: 348
Website

Re: Message queue

Offline

#3 2008-02-06 05:55 PM

i3839
Oddministrator
From: Amsterdam
Registered: 2003-06-07
Posts: 2,239

Re: Message queue

But how to wait on multiple message queues at the same time?

I don't see why anyone would use message queues instead of file descriptors (fifo or unix domain socket).

Offline

Board footer

Powered by FluxBB