diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-06-12 15:24:08 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-06-12 15:24:08 +0200 |
commit | ff93f54653d099bddfed34a342906a3546e70496 (patch) | |
tree | 36f61ed29ae8f7335ab9086aea6afaa50aeb2305 /src/options.hpp | |
parent | e080e3e8b620b0e7ed02c28712a0c92b08de3451 (diff) |
ZMQ_FILTER socket option added
This option is a performance tweak. In devices XSUB socket filters
the messages just to send them to XPUB socket which filters them
once more. Setting ZMQ_FILTER option to 0 allows to switch the
filtering in XSUB socket off.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/options.hpp')
-rw-r--r-- | src/options.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/options.hpp b/src/options.hpp index fd39a74..e055919 100644 --- a/src/options.hpp +++ b/src/options.hpp @@ -75,6 +75,9 @@ 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; + // If true, when connecting, pipes are created immediately without // waiting for the connection to be established. That way the socket // is not aware of the peer's identity, however, it is able to send |