Commit fe2e772d authored by Martin Sustrik's avatar Martin Sustrik

pgm_socket uses binary version of UUID

pgm_socket used textural form of UUID to generate GSIs.
The recent patch that removed support for textual UUIDs
broke the functionality. This patch fixes the problem.
Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 96213d57
...@@ -261,10 +261,10 @@ int zmq::pgm_socket_t::init (bool udp_encapsulation_, const char *network_) ...@@ -261,10 +261,10 @@ int zmq::pgm_socket_t::init (bool udp_encapsulation_, const char *network_)
goto err_abort; goto err_abort;
} else { } else {
// Generate random gsi. // Generate GSI from UUID.
std::string gsi_base = uuid_t ().to_string (); unsigned char buf [16];
if (!pgm_gsi_create_from_string (&addr.sa_addr.gsi, generate_uuid (buf);
gsi_base.c_str (), -1)) if (!pgm_gsi_create_from_data (&addr.sa_addr.gsi, buf, 16))
goto err_abort; goto err_abort;
} }
......
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