summaryrefslogtreecommitdiff
path: root/src/xrep.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-02-12 19:42:35 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-02-12 19:42:35 +0100
commit313b5dfadd8753b341197cc109bce40e08856cf6 (patch)
tree28cb7ec6f955ca12a28a7cf58fc5751d94227bc7 /src/xrep.cpp
parent96e0442332fcc680ddafdcaa8fcbdc6acd992c76 (diff)
Multi-hop REQ/REP, part III., change 'type' in options to simple 'traceroute' flag
Diffstat (limited to 'src/xrep.cpp')
-rw-r--r--src/xrep.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xrep.cpp b/src/xrep.cpp
index 67a9a39..9462a60 100644
--- a/src/xrep.cpp
+++ b/src/xrep.cpp
@@ -25,9 +25,12 @@
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;
+
+ // XREP socket adds identity to inbound messages and strips identity
+ // from the outbound messages.
+ options.traceroute = true;
}
zmq::xrep_t::~xrep_t ()