Missing Connect() in ZmqPullSocket and Bind() in ZmqPushSocket



AlexForster wrote Feb 19, 2011 at 4:17 PM

Ah you're right, I got them backwards. ZmqPushSocket should only expose Bind and ZmqPullSocket should only expose Connect. In ZeroMQ, zmq_bind() and zmq_connect() do the same thing for that particular socket pair.

AlexForster wrote Feb 19, 2011 at 8:38 PM

Note that ZmqRequestSocket and ZmqReplySocket had the same issue, though ZmqPublishSocket and ZmqSubscribeSocket didn't.

skrebbel wrote Mar 16, 2011 at 11:34 AM

Shouldn't both be possible?

Using clrzmq2, I just created a PULL socket that calls Bind (to become a listening server) and a set of PUSH socket thats call Connect. Essentially I'm doing HTTP-style communication without any responses. (push sockets connect whenever they want to and send messages whenever they want to, and a single pull "server" has a loop with recv from which it gets tasks)