diff options
author | Mikko Koppanen <mkoppanen@php.net> | 2010-12-15 14:41:18 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-12-15 14:41:18 +0100 |
commit | a46980babe076d34347629a54e9635466e6e2a9f (patch) | |
tree | 2910018ecd3f5d8812d21c822f7d5b982ac479df /devices | |
parent | f749f2d21c1b47e6dcd626633acff764a4484b99 (diff) |
Remove assertions from devices
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
Diffstat (limited to 'devices')
-rw-r--r-- | devices/zmq_forwarder/zmq_forwarder.cpp | 6 | ||||
-rw-r--r-- | devices/zmq_queue/zmq_queue.cpp | 6 | ||||
-rw-r--r-- | devices/zmq_streamer/zmq_streamer.cpp | 6 |
3 files changed, 15 insertions, 3 deletions
diff --git a/devices/zmq_forwarder/zmq_forwarder.cpp b/devices/zmq_forwarder/zmq_forwarder.cpp index 88a92d1..c28b461 100644 --- a/devices/zmq_forwarder/zmq_forwarder.cpp +++ b/devices/zmq_forwarder/zmq_forwarder.cpp @@ -113,7 +113,11 @@ int main (int argc, char *argv []) n++; } - zmq::device (ZMQ_FORWARDER, in_socket, out_socket); + try { + zmq::device (ZMQ_FORWARDER, in_socket, out_socket); + } catch (zmq::error_t& e) { + fprintf(stderr, "device exit: %s\n", e.what()); + } return 0; } diff --git a/devices/zmq_queue/zmq_queue.cpp b/devices/zmq_queue/zmq_queue.cpp index 284bf9a..09e3304 100644 --- a/devices/zmq_queue/zmq_queue.cpp +++ b/devices/zmq_queue/zmq_queue.cpp @@ -112,7 +112,11 @@ int main (int argc, char *argv []) n++; } - zmq::device (ZMQ_QUEUE, in_socket, out_socket); + try { + zmq::device (ZMQ_QUEUE, in_socket, out_socket); + } catch (zmq::error_t& e) { + fprintf(stderr, "device exit: %s\n", e.what()); + } return 0; } diff --git a/devices/zmq_streamer/zmq_streamer.cpp b/devices/zmq_streamer/zmq_streamer.cpp index 242d03f..9b57074 100644 --- a/devices/zmq_streamer/zmq_streamer.cpp +++ b/devices/zmq_streamer/zmq_streamer.cpp @@ -112,7 +112,11 @@ int main (int argc, char *argv []) n++; } - zmq::device (ZMQ_FORWARDER, in_socket, out_socket); + try { + zmq::device (ZMQ_STREAMER, in_socket, out_socket); + } catch (zmq::error_t& e) { + fprintf(stderr, "device exit: %s\n", e.what()); + } return 0; } |