pebbe / zmq4

A Go interface to ZeroMQ version 4
BSD 2-Clause "Simplified" License
1.17k stars 163 forks source link

rr client/worker example incorrect. #93

Closed laszlo-kiss closed 8 years ago

laszlo-kiss commented 8 years ago

The worker should be using responder.bind() instead of responder.connect(). The two are also using different ports which makes no sense.

pebbe commented 8 years ago

The example is correct.

See http://zguide.zeromq.org/page:all#Shared-Queue-DEALER-and-ROUTER-sockets

laszlo-kiss commented 8 years ago

Sorry about that. I missed the whole dealer/router thing.