mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-04 19:13:35 +01:00
Merge pull request #592 from gavinmcniff/master
Store identity for raw socket
This commit is contained in:
commit
4a4d222ec4
@ -372,6 +372,9 @@ bool zmq::router_t::identify_peer (pipe_t *pipe_)
|
||||
buf [0] = 0;
|
||||
put_uint32 (buf + 1, next_peer_id++);
|
||||
identity = blob_t (buf, sizeof buf);
|
||||
unsigned int i = 0; // Store identity to allow use of raw socket as client
|
||||
for (blob_t::iterator it = identity.begin(); it != identity.end(); it++) options.identity[i++] = *it;
|
||||
options.identity_size = i;
|
||||
}
|
||||
else {
|
||||
msg.init ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user