diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-01-28 07:50:21 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-01-28 07:50:21 +0100 |
commit | 1b15eba9a9718adfeea5cecf499b8247596f6c71 (patch) | |
tree | 920e22d48e582f18eebf12eead1a6d6bc934b8ef | |
parent | f7f1dfc86dd649edbd789a5d157d74721338c912 (diff) |
Fixed the problem of subscription forwarding and PGM interaction
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
-rw-r--r-- | src/socket_base.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp index 5c21b8f..f19187f 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -192,7 +192,8 @@ int zmq::socket_base_t::check_protocol (const std::string &protocol_) // Specifically, multicast protocols can't be combined with // bi-directional messaging patterns (socket types). if ((protocol_ == "pgm" || protocol_ == "epgm") && - options.requires_in && options.requires_out) { + options.type != ZMQ_PUB && options.type != ZMQ_SUB && + options.type != ZMQ_XPUB && options.type != ZMQ_XSUB) { errno = ENOCOMPATPROTO; return -1; } |