Hi,
I am trying to use a subscriber in C++ in the following way:
zmq_socket.setsockopt(ZMQ_RCVTIMEO, 1000);

But the above line is throwing following error:
no matching function for call to ‘zmq::socket_t::setsockopt(int, int)’


I am also trying to receive published byte array using following code:
unsigned char* byteptr = msg.data<unsigned char>();

But the above line is throwing following error:
error: expected primary-expression before ‘unsigned’

Please check out the following Pastebin link in order to see the complete code 
(https://pastebin.com/XEYduhaD)
  
-
Thanks
Ravi
_______________________________________________
zeromq-dev mailing list
[email protected]
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to