[zeromq-dev] Solve ROUTER<->ROUTER 'who will be first' auto discovery problem

Sergey Hripchenko shripchenko at intermedia.net
Tue May 21 19:43:59 CEST 2013

Pull request 561: https://github.com/zeromq/libzmq/pull/561

Add ROUTER socket option 'ZMQ_ROUTER_ANNOUNCE_SELF' to introduce self(e.g. send an empty message) to newly connected/accepted peers, to allow ROUTER<->ROUTER auto-discovery problem.

Not sure that zmq::router_t::identify_peer() - it is the best place for the code to automatically send message to new peers.

Anyway it works, and now ROUTER will send message to any newly connected peer.
This way ROUTER on other side immediately will know the identity of the remote side.

I believe that 'ZMQ_ROUTER_ANNOUNCE_SELF' option name could/should be adjusted.


This message is intended only for the person(s) to which it is addressed and may contain Intermedia.net Inc privileged, confidential and/or proprietary information. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Any disclosure, copying, distribution, or the taking of any action concerning the contents of this message and any attachment(s) by anyone other than the named recipient(s) is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130521/fcb89e25/attachment.htm>

More information about the zeromq-dev mailing list