We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee47ae4 + 0c0f3ae commit ce806eeCopy full SHA for ce806ee
zmq.hpp
@@ -492,7 +492,11 @@ namespace zmq
492
if (rc == -1 && zmq_errno() == ETERM)
493
break;
494
assert (rc != -1);
495
- zmq_event_t* event = static_cast<zmq_event_t*>(zmq_msg_data (&eventMsg));
+ const char* data = static_cast<const char*>(zmq_msg_data(&eventMsg));
496
+ zmq_event_t msgEvent;
497
+ msgEvent.event = *(uint16_t*)data; data += sizeof(uint16_t);
498
+ msgEvent.value = *(int32_t*)data;
499
+ zmq_event_t* event = &msgEvent;
500
501
#ifdef ZMQ_NEW_MONITOR_EVENT_LAYOUT
502
zmq_msg_t addrMsg;
0 commit comments