[zeromq-dev] Can't make router router work

Douglas Petican dpetican at gmail.com
Wed Jun 8 16:07:11 CEST 2016


I want to enforce a one to one relationship between client and 
dynamically spawned worker.  I asked before on the list and was told to 
use a router router broker.  However, I can't get my code to work in 
anyway with a router on both the frontend and backend of the broker.  
Nothing happens.  It only works (almost) with a dealer backend.

The first client connects okay and the worker is spawned dynamically.  
When the second client connects a new worker is spawned and the second  
client and worker talk to each other exclusively, but the first client 
talks to both workers which is not what I want.

My broker code is here: http://pastebin.com/eKVQ7VwR

The client/worker code is here: http://pastebin.com/5tU9BZRn

-- 
<-Douglas Petican->




More information about the zeromq-dev mailing list