Add ROUTER socket option to introduce self(send an empty message) to new peers, to allow ROUTER<->ROUTER auto-discovery problem.

This commit is contained in:
shripchenko
2013-05-21 10:20:24 -07:00
parent d113495500
commit ed3a115da9
3 changed files with 22 additions and 1 deletions

View File

@@ -112,6 +112,9 @@ namespace zmq
bool mandatory;
bool raw_sock;
// if true, send an empty message to every connected peer to solve 'who will write first' race condition
bool announce_self;
router_t (const router_t&);
const router_t &operator = (const router_t&);
};