summaryrefslogtreecommitdiff
path: root/src/options.hpp
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/options.hpp
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/options.hpp')
-rw-r--r--src/options.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/options.hpp b/src/options.hpp
index 70144b2..a4a0bc6 100644
--- a/src/options.hpp
+++ b/src/options.hpp
@@ -75,9 +75,6 @@ namespace zmq
// Maximal size of message to handle.
int64_t maxmsgsize;
- // If 1, (X)SUB socket should filter the messages. If 0, it should not.
- int filter;
-
// The timeout for send/recv operations for this socket.
int rcvtimeo;
int sndtimeo;
@@ -95,6 +92,9 @@ namespace zmq
// If true, socket reads all the messages from the pipe and delivers
// them to the user when the peer terminates.
bool delay_on_disconnect;
+
+ // If 1, (X)SUB socket should filter the messages. If 0, it should not.
+ bool filter;
};
}