Posted: Tue Dec 28, 2004 3:26 am Post subject: Messages in Queue?
Apprentice
Joined: 23 Nov 2004 Posts: 29
Hello,
please could you give some help on this?
Is it a way to know if a message is in the queue before reading it?
or how do I use queue.get only if there is a message ?
My problem is that I write two programs in c++
one of the program put message in the queue and the other get this message from the queue.
the first program can put an unlimited number of messages in the queue, but in the second program I can only read the first message !!!
and not the others
how do I get all the messages from the queue?
do I have to write a loop when getting the messages?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum