summaryrefslogtreecommitdiff
path: root/devices/zmq_forwarder
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2010-01-11 07:47:19 +0100
committerMartin Sustrik <sustrik@fastmq.commkdir>2010-01-11 07:47:19 +0100
commit72b2f07a707724b353e9733f60cb4bade9b43966 (patch)
tree12544fd47c85c3cc63dde5226700dcc16eb6aba2 /devices/zmq_forwarder
parent65f450f22e311d9a9251d05f8fb902a8fa2afe54 (diff)
ZMQII-36: Chat example & forwarder broken because of changes subscribe semantics
Diffstat (limited to 'devices/zmq_forwarder')
-rw-r--r--devices/zmq_forwarder/zmq_forwarder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/devices/zmq_forwarder/zmq_forwarder.cpp b/devices/zmq_forwarder/zmq_forwarder.cpp
index 42d65b4..b900484 100644
--- a/devices/zmq_forwarder/zmq_forwarder.cpp
+++ b/devices/zmq_forwarder/zmq_forwarder.cpp
@@ -54,7 +54,7 @@ int main (int argc, char *argv [])
// TODO: make the number of I/O threads configurable.
zmq::context_t ctx (1, 1);
zmq::socket_t in_socket (ctx, ZMQ_SUB);
- in_socket.setsockopt (ZMQ_SUBSCRIBE, "*", 1);
+ in_socket.setsockopt (ZMQ_SUBSCRIBE, "", 0);
zmq::socket_t out_socket (ctx, ZMQ_PUB);
int n = 0;