mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-27 19:10:22 +01:00
Fixed compile issue with missing member of socket_base. Changed ZMQ_NEXT_IDENTITY to ZMQ_NEXT_CONNECT_PEER_ID.
Fixed case where ZMQ_NEXT_CONNECT_PEER_ID is used in ROUTER, and ROUTER does not read the identity message from the connected pipe.
This commit is contained in:
@@ -170,7 +170,7 @@ int zmq::stream_t::xsetsockopt (int option_, const void *optval_,
|
||||
int value = is_int? *((int *) optval_): 0;
|
||||
|
||||
switch (option_) {
|
||||
case ZMQ_NEXT_IDENTITY:
|
||||
case ZMQ_NEXT_CONNECT_PEER_ID:
|
||||
if(optval_ && optvallen_) {
|
||||
next_identity.assign((char*)optval_,optvallen_);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user