Re: [zeromq-dev] DEALER and ROUTER to send and receive

2013-04-10 Thread Neylor Ohmaly Rodrigues e Silva
In your code the ReceiveMessage function is using the zmq_msg_recv function with depending on the value of the flags variable blocks until a message is received and, while blocked, this socket will not be able to send anything. You should use a non blocking recv method and poll for messages or use

Re: [zeromq-dev] DEALER and ROUTER to send and receive

2013-04-10 Thread 8429oakm...@gmail.com
Thanks, Neylor. Would you please give me some code snippet to help me understand how to make non-blocking recv call ? I am pretty new in 0mq. Thanks in advance. On Apr 10, 2013, at 7:20 AM, Neylor Ohmaly Rodrigues e Silva nohros@gmail.com wrote: In your code the ReceiveMessage

[zeromq-dev] DEALER and ROUTER to send and receive

2013-04-09 Thread Rahul Piyali Ray
Hi Gurus, I have implemented a dealer (server) and router ( as server) using zmq. I would like my application to use dealer or router to both send and receive messages, something like a dealer can send and receive message. Is this possible ? Please see the code that I have written. This works

Re: [zeromq-dev] DEALER and ROUTER to send and receive

2013-04-09 Thread A. Mark
It is difficult to help without understanding more detail about your application, in general yes you can send/recv in any order on router/dealer. On Tue, Apr 9, 2013 at 3:38 PM, Rahul Piyali Ray 8429oakm...@gmail.comwrote: Hi Gurus, I have implemented a dealer (server) and router ( as

Re: [zeromq-dev] DEALER and ROUTER to send and receive

2013-04-09 Thread Lucas Hope
The router has to receive a message from the dealer first, so the return envelope/s can be determined. After that, I don't think there are any restrictions. On Wed, Apr 10, 2013 at 1:06 PM, A. Mark gougol...@gmail.com wrote: It is difficult to help without understanding more detail about your