Currently working on a Python to ZMQ Program; this is what I have for the c++ client so far:
zmq::context_t context{1};
zmq::socket_t socket{context, zmq::socket_type::req};
socket.connect("tcp://IPADDRESSPLACEHOLDERTEXT:51000");
const std::string data{"Message"};
zmq::message_t reply{};
socket.recv(reply, zmq::recv_flags::none);
char CHAR[10];
memcpy(CHAR, zmq_msg_data(&reply), 9);
CHAR[10] = '\0';
std::cout << “RESULT: " << CHAR << "," << std::endl;
return 0;
However, when I run the full-scale Qt program it crashes. ZMQ itself works (tested it with a c++ server, slightly different code) but doesn't work here. Isolated the program thus far to determine that the problem comes from this code block.