[zeromq-dev] brain foggy -- need help

Pieter Hintjens ph at imatix.com
Wed Oct 30 15:30:57 CET 2013


On Wed, Oct 30, 2013 at 3:13 PM, Andrew Hume <andrew at research.att.com> wrote:
> ugh.
> ok, i'll bite -- i guess i'll take this opportunity to grok ROUTER/DEALER.
>
> how do i generate (on the dealer side) teh identity part?
> (i'm assuming that i need to send a 3 part message on the sending side.)

For any serious work with ZMQ, you need to dig into ROUTER/DEALER, it
ends up much simpler than trying to work with multiple socket flows.

Read the Guide, chapter on Request Reply.

Dealer doesn't generate an identity, it's like a handle per peer
connection the Router generates internally and delivers to the API.

Setting an explicit identity in Dealer overrides this generated value
with your own.

-Pieter



More information about the zeromq-dev mailing list