Created
November 15, 2013 07:04
-
-
Save justinzane/7480339 to your computer and use it in GitHub Desktop.
winmgr.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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