[zeromq-dev] Router socket and connection identities?

Goswin von Brederlow goswin-v-b at web.de
Fri Sep 12 17:04:27 CEST 2014


On Fri, Sep 12, 2014 at 09:00:02AM +0100, Riskybiz wrote:
> Dear zeromq developers,
> 
>  
> 
>                 I intend to create an example DEALER-ROUTER network
> arrangement which will pass multipart messages containing a variable number
> of parts.  As I understand it a ROUTER socket uses an identity for each of
> the connections with which it corresponds; the identities are stored
> internally by the ROUTER socket in a lookup container.
> 
>  
> 
> My question is:
> 
>  
> 
> Is it necessary in my code to create a unique identity for each connection
> and then pass it to the ROUTER socket OR does the ROUTER socket create the
> necessary identity internally?

Yes. :)

If you create identities they better be unique. If you don't create
identities then the ROUTER socket will create random ones for you.

> Also, does anyone please know of a simple console example of a ROUTER-DEALER
> arrangement which I may study and which will work on Windows using
> zeromq-4.0.4?

There should be several in the guide.
 
> With thanks,
> 
>  
> 
> Riskybiz.

MfG
	Goswin



More information about the zeromq-dev mailing list