Gudmundur Adalsteinsson

Results 119 comments of Gudmundur Adalsteinsson

This is unsafe since you are interpreting bytes as an object. It is also pobably not a good idea to send the bytes representing variant since it is not a...

The data() function is really only safe for byte like types, unsigned char, char, and std byte. That should probably be better documented. But if you are sending a trivial...

I think libzmq uses messages internally so when you `recv` messages (heap allocated ones) that is what you get. You could check the alignment of the data pointer at runtime,...

ZMQ_PAIR is designed for inproc transport so maybe try that, or some other socket type over tcp.

According to the docs tcp for pair is not suitable in some cases http://api.zeromq.org/4-3:zmq-socket but that may not be the case here.

Can you try using the non-deprecated send/recv functions. And can you also provide how you send the data?

The functions that are not marked as deprecated, the deprecated ones are easier to misuse.

You can move it push_back(std::move(message)) or do explicit copy.

Looks like that should be nullptr (or rather ZMQ_NULLPTR) instead of NULL., what compiler and std version are you using?

You need to link to libzmq.