Skip to content

Commit

Permalink
Merge pull request #592 from gavinmcniff/master
Browse files Browse the repository at this point in the history
Store identity for raw socket
  • Loading branch information
hintjens committed Jun 24, 2013
2 parents e9d11c6 + b893ce2 commit 4a4d222
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/router.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
Expand Down

0 comments on commit 4a4d222

Please sign in to comment.