Multi-hop REQ/REP, part IX., pass the peer identity as far as socket_base_t

This commit is contained in:
Martin Sustrik
2010-02-13 15:30:03 +01:00
parent f5ce81f289
commit 4405250d93
10 changed files with 46 additions and 16 deletions

View File

@@ -76,7 +76,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
return 0;
case ZMQ_IDENTITY:
identity.assign ((const char*) optval_, optvallen_);
identity.assign ((const unsigned char*) optval_, optvallen_);
return 0;
case ZMQ_RATE: