I have done a sample ZeroMQ PGM multicast application and it is working fine.
But reply handling is not working. Is this correct approach or not?
If yes - how to do any reply from a Receiver to the Sender?
Sender:
std::string msg = "hello";
socket->send(msg.c_str(),msg.length(),0);
socket->recv(reply); // Can we do this?
Receiver:
char msg[100] = {0};
std::string reply = "Succ";
socket->recv(msg,100,0);
socket->send(reply.c_str(),reply.length(),0); // Can we do this?