[zeromq-dev] DEALER - ROUTER and unsolicited ROUTER to DEALER sends

Pieter Hintjens ph at imatix.com
Thu Apr 11 11:15:49 CEST 2013


On Wed, Apr 10, 2013 at 8:17 PM, Niels Berglund
<niels.it.berglund at gmail.com> wrote:

> So, once again - am I completely "off the wall" trying to achieve this, if I
> am  - what is the 0MQ way to do it, if not - again - what is the 0MQ way to
> do it?

The 0MQ way is to stop trying to fit 0MQ into your existing
conceptions of how messaging works. That will not work, it never does.

Your questions show that you've missing how 0MQ works, in terms of
driving your architecture. Threads do not share sockets, period. A
thread should act on messages, with a poll as its core. All the bigger
examples work like this.

Please, step back from your code, read the Guide and more importantly,
work through the examples, at least in Ch1 and Ch2. Allow for a few
days for the ideas to sink into your brain, and then restart your
application design.

-Pieter



More information about the zeromq-dev mailing list