Commit 84847138 authored by Luca Boccassi's avatar Luca Boccassi

Problem: test_monitor fails with ipv6

Solution: correctly set the ipv6 flag in the connecting socket
parent 01b2a8ce
...@@ -145,6 +145,12 @@ void test_monitor_versioned_basic (bind_function_t bind_function_, ...@@ -145,6 +145,12 @@ void test_monitor_versioned_basic (bind_function_t bind_function_,
// Now do a basic ping test // Now do a basic ping test
bind_function_ (server, server_endpoint, sizeof server_endpoint); bind_function_ (server, server_endpoint, sizeof server_endpoint);
int ipv6_;
size_t ipv6_size_ = sizeof (ipv6_);
TEST_ASSERT_SUCCESS_ERRNO (
zmq_getsockopt (server, ZMQ_IPV6, &ipv6_, &ipv6_size_));
TEST_ASSERT_SUCCESS_ERRNO (
zmq_setsockopt (client, ZMQ_IPV6, &ipv6_, sizeof (int)));
TEST_ASSERT_SUCCESS_ERRNO (zmq_connect (client, server_endpoint)); TEST_ASSERT_SUCCESS_ERRNO (zmq_connect (client, server_endpoint));
bounce (server, client); bounce (server, client);
......
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