Add support for RADIO/DISH sockets if draft API is enabled

This commit introduces new socket_type enumeration values as well
as the following supporting functions:

socket_t::join()
socket_t::leave()
message_t::group()
message_t::set_group()
This commit is contained in:
Joseph Artsimovich
2018-07-13 16:01:15 +03:00
parent 73f171abb2
commit 751f27d635
2 changed files with 38 additions and 1 deletions

View File

@@ -126,4 +126,11 @@ TEST(message, routing_id_persists)
msg.set_routing_id(123);
ASSERT_EQ(123u, msg.routing_id());
}
TEST(message, group_persists)
{
zmq::message_t msg;
msg.set_group("mygroup");
ASSERT_STREQ("mygroup", msg.group());
}
#endif