On Aug 15, 2012, at 9:27 AM, andrea crotti wrote:

> 2012/8/15 Chuck Remes <li...@chuckremes.com>:
>> 
>> Correct, only one socket may bind to a specific address. This is just like a 
>> regular socket.
>> 
> 
> Well I understood the reason of my pain, the task submitter and the
> result socket are both PUSH/PULL, but the first should do a
> bind/connect, while the second a connect/bind, so my generic code was
> just too generic..
> 
> Anyway if I do a connect/connect they just hang there not receiving
> anything, what is the explanation for that?

You must match a connect with a bind. You cannot have 2 (or more) sockets use 
zmq_connect to connect to each other. The socket(s) must have something to 
connect *to* and that is only true when a socket has bound an address. Again, 
this is just like regular sockets.

cr


_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to