[zeromq-dev] Error: no matching function for call to ‘zmq::socket_t::setsockopt(int, int)’
Ravi Joshi
ravi.joshi53 at yahoo.com
Sat Nov 25 13:24:17 CET 2017
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
More information about the zeromq-dev
mailing list