summaryrefslogtreecommitdiff
path: root/src/sub.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-07-11 09:57:59 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-07-11 09:57:59 +0200
commitd7adc3f19a4c941e854552d6d7881950a69b0d23 (patch)
treeefddd559463040a438a71d30a6c098b98c61d972 /src/sub.cpp
parenta154ef69da4e41d3a8ce5a3141fe8f052c7ea853 (diff)
ZMQ_FILTER option removed
The filtering is now done depending on the socket type. SUB socket filters the messages (end-to-end filtering) while XSUB relies on upstream nodes to do (imprefect) filtering. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/sub.cpp')
-rw-r--r--src/sub.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sub.cpp b/src/sub.cpp
index c8ffd2e..2a1454a 100644
--- a/src/sub.cpp
+++ b/src/sub.cpp
@@ -25,6 +25,10 @@ zmq::sub_t::sub_t (class ctx_t *parent_, uint32_t tid_) :
xsub_t (parent_, tid_)
{
options.type = ZMQ_SUB;
+
+ // Switch filtering messages on (as opposed to XSUB which where the
+ // filtering is off).
+ options.filter = true;
}
zmq::sub_t::~sub_t ()