Commit 1b15eba9 authored by Martin Sustrik's avatar Martin Sustrik

Fixed the problem of subscription forwarding and PGM interaction

Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent f7f1dfc8
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment