Here is once again an issue I don't get with ZeroMQ. My goal is to be able to send a simple message through a publisher and then to subscribe to a topic and to receive it. However, after some researches, I ended up writing this code that creates the sockets connection + sets the topic subscription, creates the message to send, sends it and receives it on the subscribers part.
However, when I run my code, it seems to block at the line sub.recv(rx_msg,zmq::recv_flags::none) where the message is being collected by the subscriber into a rx_msg. I then checked using wireshark to see what was going on between my two sockets and everything goes right (socket sub, scket pub, subscribe to topic) until the message is sent where I doint see anything happening. I can easily conclude that no message is being sent using the pub.send(message, zmq::send_flags::none) line. I then can't understand why this line doesn't do what I expect it to do. Is the socket.send() function not the one to be used here or is it the arguments I use in it that need to be changed.