[zeromq-dev] 2 DEALER's talking to 1 ROUTER

Kevin Meredith kevin.m.meredith at gmail.com
Thu Aug 11 03:49:19 CEST 2016


Per
http://stackoverflow.com/questions/38863097/2-dealers-talking-to-1-router,
I'm having difficulty having 2 DEALER's talk to 1 ROUTER at the same time.

Each DEALER sends 5 messages (HELLO5, ..., HELLO1), and then sends "END"
for the `ROUTER`, i.e. main, to exit.

However, here's my output:

[info] Running net.async.AsyncClientServer[info] DEALER JOE sent
message: HELLO_#5.[info] DEALER JOE sent message: HELLO_#4.[info]
DEALER JOE sent message: HELLO_#3.[info] DEALER JOE sent message:
HELLO_#2.[info] DEALER JOE sent message: HELLO_#1.[info] DEALER JOE
sent message: END.[info] DEALER JOE sent message: END.[info] DEALER
JOE sent message: END.[info] DEALER JOE sent message: END.[info]
DEALER JOE sent message: END.[info] DEALER JOE sent message:
END.[info] DEALER JOE sent message: END.[info] DEALER JOE sent
message: END.[info] DEALER JOE sent message: END.[info] DEALER JOE
sent message: END.[info] DEALER JOE sent message: END.[info] DEALER
JOE sent message: END.[info] DEALER JOE sent message: END.[info]
DEALER JOE sent message: END.[info] DEALER JOE sent message:
END.[info] DEALER JOE sent message: END.[info] DEALER JOE sent
message: END.[info] DEALER JOE sent message: END.[info] DEALER JOE
sent message: END.[info] DEALER JOE sent message: END.[info] DEALER
JOE sent message: END.[info] DEALER JOE sent message: END.[info]
DEALER JOE sent message: END.[info] DEALER JOE sent message:
END.[info] DEALER JOE sent message: END.[info] DEALER JOE sent
message: END.[info] DEALER JOE sent message: END.[info] DEALER JOE
sent message: END.[info] DEALER JOE sent message: END.[info] DEALER
JOE sent message: END.[info] DEALER JOE sent message: END.[info]
DEALER JOE sent message: END.[info] DEALER JOE sent message:
END.[info] DEALER JOE sent message: END.[info] DEALER JOE sent
message: END.[info] DEALER JOE sent message: END.[info] DEALER JOE
sent message: END.[info] DEALER JOE sent message: END.[info] DEALER
JOE sent message: END.[info] DEALER JOE sent message: END.[info]
DEALER JOE sent message: END.[info] DEALER JOE sent message:
END.[info] DEALER JOE sent message: END.[info] DEALER JOE sent
message: END.[info] DEALER JOE sent message: END.[info] DEALER JOE
sent message: END.[info] DEALER JOE sent message: END.[info] DEALER
JOE sent message: END.[info] DEALER JOE sent message: END.[info]
DEALER JOE sent message: END.[info] DEALER JOE sent message:
END.[info] DEALER JOE sent message: END.[info] DEALER JOE sent
message: END.[info] DEALER JOE sent message: END.[info] DEALER JOE
sent message: END.[info] DEALER JOE sent message: END.[info] DEALER
JOE sent message: END.[info] DEALER JOE sent message: END.[info]
DEALER JOE sent message: END.[info] DEALER JOE sent message:
END.[info] DEALER JOE sent message: END.[info] DEALER JOE sent
message: END.[info] DEALER JOE sent message: END.[info] DEALER JOE
sent message: END.[info] DEALER JOE sent message: END.[info] DEALER
JOE sent message: END.[info] DEALER JOE sent message: END.[info]
DEALER JOE sent message: END.[info] DEALER JOE sent message:
END.[info] DEALER JOE sent message: END.[info] DEALER JOE sent
message: END.[info] DEALER JOE sent message: END.[info] DEALER JOE
sent message: END.[info] DEALER JOE sent message: END.[info] DEALER
JOE sent message: END.[info] DEALER JOE sent message: END.[info]
DEALER JOE sent message: END.[info] DEALER JOE sent message:
END.[info] DEALER JOE sent message: END.[info] DEALER JOE sent
message: END.[info] DEALER JOE sent message: END.[info] DEALER JOE
sent message: END.[info] DEALER JOE sent message: END.[info] DEALER
JOE sent message: END.[info] DEALER JOE sent message: END.[info]
DEALER JOE sent message: END.[info] DEALER JOE sent message:
END.[info] DEALER JOE sent message: END.[info] DEALER JOE sent
message: END.[info] DEALER JOE sent message: END.[info] DEALER JOE
sent message: END.[info] DEALER JOE sent message: END.[info] DEALER
JOE sent message: END.[info] DEALER JOE sent message: END.[info]
DEALER JOE sent message: END.[info] DEALER JOE sent message:
END.[info] DEALER JOE sent message: END.[info] DEALER JOE sent
message: END.[info] DEALER JOE sent message: END.[info] DEALER JOE
sent message: END.[info] DEALER JOE sent message: END.[info] DEALER
JOE sent message: END.[info] DEALER JOE sent message: END.[info]
DEALER JOE sent message: END.[info] DEALER JOE sent message:
END.[info] DEALER JOE sent message: END.[info] DEALER JOE sent
message: END.[info] DEALER JOE sent message: END.[info] DEALER JOE
sent message: END.[info] DEALER JOE sent message: END.[info] DEALER
JOE sent message: END.[info] DEALER JOE sent message: END.[info]
DEALER JOE sent message: END.[info] DEALER JOE sent message:
END.[info] DEALER JOE sent message: END.[info] DEALER JOE sent
message: END.[info] DEALER JOE sent message: END.[info] DEALER JOE
sent message: END.[info] DEALER JOE sent message: END.[info] DEALER
JOE sent message: END.[info] DEALER JOE sent message: END.[info]
DEALER JOE sent message: END.[info] DEALER JOE sent message:
END.[info] DEALER JOE sent message: END.[info] DEALER JOE sent
message: END.[info] DEALER JOE sent message: END.[info] DEALER JOE
sent message: END.[info] DEALER JOE sent message: END.[info] DEALER
JOE sent message: END.[info] DEALER JOE sent message: END.[info]
DEALER JOE sent message: END.[info] DEALER JOE sent message:
END.[info] DEALER JILL sent message: HELLO_#5.[info] ROUTER: Received
message from JILL.[info] DEALER JILL sent message: HELLO_#4.[info]
DEALER JILL sent message: HELLO_#3.[info] DEALER JILL sent message:
HELLO_#2.[info] DEALER JILL sent message: HELLO_#1.[info] DEALER JILL
sent message: END.[info] DEALER JILL sent message: END.

Please advise me on N DEALERs to 1 ROUTER communication.

Thanks,
Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160810/2213d258/attachment.htm>


More information about the zeromq-dev mailing list