[zeromq-dev] push/pull and multiple workers

Chuck Remes lists at chuckremes.com
Wed Aug 15 17:04:05 CEST 2012

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

> 2012/8/15 Chuck Remes <lists at 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.


More information about the zeromq-dev mailing list