diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-02-13 15:30:03 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-02-13 15:30:03 +0100 |
commit | 4405250d93a2ad6eb3940c4bc4fe8ea32bd52f9e (patch) | |
tree | 529c5b87ed71453e406f8bd5e74b84f1b48fe5e2 /src/pgm_socket.cpp | |
parent | f5ce81f2893ec0707c2f4346740878e68b51e13a (diff) |
Multi-hop REQ/REP, part IX., pass the peer identity as far as socket_base_t
Diffstat (limited to 'src/pgm_socket.cpp')
-rw-r--r-- | src/pgm_socket.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pgm_socket.cpp b/src/pgm_socket.cpp index 1eeb34f..462a3a9 100644 --- a/src/pgm_socket.cpp +++ b/src/pgm_socket.cpp @@ -89,8 +89,11 @@ int zmq::pgm_socket_t::init (bool udp_encapsulation_, const char *network_) if (options.identity.size () > 0) { - // Create gsi from identity string. - gsi_base = options.identity; + // Create gsi from identity. + // TODO: We assume that identity is standard C string here. + // What if it contains binary zeroes? + gsi_base.assign ((const char*) options.identity.data (), + options.identity.size ()); } else { // Generate random gsi. |