diff options
Diffstat (limited to 'src/xrep.cpp')
-rw-r--r-- | src/xrep.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/xrep.cpp b/src/xrep.cpp index 67a9a39..328a832 100644 --- a/src/xrep.cpp +++ b/src/xrep.cpp @@ -25,9 +25,16 @@ zmq::xrep_t::xrep_t (class app_thread_t *parent_) : socket_base_t (parent_) { - options.type = ZMQ_XREP; options.requires_in = true; options.requires_out = true; + + // On connect, pipes are created only after initial handshaking. + // That way we are aware of the peer's identity when binding to the pipes. + options.immediate_connect = false; + + // XREP socket adds identity to inbound messages and strips identity + // from the outbound messages. + options.traceroute = true; } zmq::xrep_t::~xrep_t () |