summaryrefslogtreecommitdiff
path: root/src/zmq_init.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-02-24 13:02:29 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-02-24 13:02:29 +0100
commit476ebde6280a428e2dd8fee7c70670aa449831c9 (patch)
tree4b2016241a614d232f95a2800c22f8d43beaf568 /src/zmq_init.cpp
parentcc5c30f5dc2d6490c0199709ceb2d86e3cc3895d (diff)
use binary UUIDs instead of string representation to save some bytes
Diffstat (limited to 'src/zmq_init.cpp')
-rw-r--r--src/zmq_init.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zmq_init.cpp b/src/zmq_init.cpp
index 3e76cb9..840de85 100644
--- a/src/zmq_init.cpp
+++ b/src/zmq_init.cpp
@@ -76,10 +76,10 @@ bool zmq::zmq_init_t::write (::zmq_msg_t *msg_)
// Retreieve the remote identity. If it's empty, generate a unique name.
if (!zmq_msg_size (msg_)) {
- unsigned char identity [uuid_t::uuid_string_len + 1];
+ unsigned char identity [uuid_t::uuid_blob_len + 1];
identity [0] = 0;
- memcpy (identity + 1, uuid_t ().to_string (), uuid_t::uuid_string_len);
- peer_identity.assign (identity, uuid_t::uuid_string_len + 1);
+ memcpy (identity + 1, uuid_t ().to_blob (), uuid_t::uuid_blob_len);
+ peer_identity.assign (identity, uuid_t::uuid_blob_len + 1);
}
else {
peer_identity.assign ((const unsigned char*) zmq_msg_data (msg_),