mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-06 05:00:07 +01:00
Scatter-Gather socket types
This commit is contained in:
@@ -77,8 +77,9 @@ const char *zmq::mechanism_t::socket_type_string (int socket_type) const
|
||||
"DEALER", "ROUTER", "PULL", "PUSH",
|
||||
"XPUB", "XSUB", "STREAM",
|
||||
"SERVER", "CLIENT",
|
||||
"RADIO", "DISH"};
|
||||
zmq_assert (socket_type >= 0 && socket_type <= 15);
|
||||
"RADIO", "DISH",
|
||||
"GATHER", "SCATTER"};
|
||||
zmq_assert (socket_type >= 0 && socket_type <= 17);
|
||||
return names [socket_type];
|
||||
}
|
||||
|
||||
@@ -198,6 +199,10 @@ bool zmq::mechanism_t::check_socket_type (const std::string& type_) const
|
||||
return type_ == "DISH";
|
||||
case ZMQ_DISH:
|
||||
return type_ == "RADIO";
|
||||
case ZMQ_GATHER:
|
||||
return type_ == "SCATTER";
|
||||
case ZMQ_SCATTER:
|
||||
return type_ == "GATHER";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user