git-svn-id: svn://elaine/murooma/trunk@124 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-07-30 21:15:52 +00:00
parent 3070880f9d
commit 78a5bb7aac

View file

@ -15,12 +15,11 @@ void receiver(zmq::socket_t* client)
while (true)
{
std::string address = s_recv (*client);
std::cout << "Address: " << address << "\n";
// receiving and discarding'empty' message
s_recv (*client);
// receiving and discarding 'ready' message
std::string msg = s_recv (*client);
std::cout << "msg: " << msg << "\n";
std::cout << "msg from " << address << ": " << msg << "\n";
}
}