* message queue for two processes.
@ 2011-05-14 15:40 ratheesh kannoth
[not found] ` <BANLkTimt9L4ZUS2--Cp7D5u+L6V6ZyjcbQ@mail.gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: ratheesh kannoth @ 2011-05-14 15:40 UTC (permalink / raw)
To: linux-c-programming
There is a server (say A ) and two clients ( say x and y ). These are
communicating thru message queue mechansim. They are using same
message queue and different id to communicate.
i read like -when a message is read , this will be removed from
message queue. Then, how can process x can read only its intended
messages ?
-Ratheesh
^ permalink raw reply [flat|nested] 2+ messages in thread
* Fwd: message queue for two processes.
[not found] ` <BANLkTimt9L4ZUS2--Cp7D5u+L6V6ZyjcbQ@mail.gmail.com>
@ 2011-05-14 16:30 ` Aniruddha Bhattacharyya
0 siblings, 0 replies; 2+ messages in thread
From: Aniruddha Bhattacharyya @ 2011-05-14 16:30 UTC (permalink / raw)
To: linux-c-programming
---------- Forwarded message ----------
From: Aniruddha Bhattacharyya <aniruddha.aot@gmail.com>
Date: Sat, May 14, 2011 at 9:51 PM
Subject: Re: message queue for two processes.
To: ratheesh kannoth <ratheesh.ksz@gmail.com>,
linux-c-programming@vger.kernel.org
each MQ has a TYPE variable (long int).
struct my_MQ{
long int my_mq_type;
char data[512];
};
You can select a particular message by the TYPE argument in msgget().
Say, for x, type == 2 and for y type == 3.
On Sat, May 14, 2011 at 9:10 PM, ratheesh kannoth
<ratheesh.ksz@gmail.com> wrote:
>
> There is a server (say A ) and two clients ( say x and y ). These are
> communicating thru message queue mechansim. They are using same
> message queue and different id to communicate.
> i read like -when a message is read , this will be removed from
> message queue. Then, how can process x can read only its intended
> messages ?
>
>
> -Ratheesh
> --
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-14 16:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-14 15:40 message queue for two processes ratheesh kannoth
[not found] ` <BANLkTimt9L4ZUS2--Cp7D5u+L6V6ZyjcbQ@mail.gmail.com>
2011-05-14 16:30 ` Fwd: " Aniruddha Bhattacharyya
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).