Skip to content

Instantly share code, notes, and snippets.

@justinzane
Created November 15, 2013 07:04
Show Gist options
  • Save justinzane/7480339 to your computer and use it in GitHub Desktop.
Save justinzane/7480339 to your computer and use it in GitHub Desktop.
winmgr.cpp
void winmgr::listener_() {
Uint64 count = 0;
while (!(stop_listener_.load())) {
count++;
zmq::message_t req;
// Wait for next request from client
try {
zmqsock_.recv (&req);
} catch (zmq::error_t &e) {
fprintf(stderr, "Iter[%lu] ZMQ Error: %d : %s\n", count, e.num(), e.what());
continue;
} catch (std::exception &e) {
fprintf(stderr, "Iter[%lu] STD Error: %d : %s\n", count, e.what());
continue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment