summaryrefslogtreecommitdiff
path: root/devices/zmq_streamer
diff options
context:
space:
mode:
Diffstat (limited to 'devices/zmq_streamer')
-rw-r--r--devices/zmq_streamer/zmq_streamer.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/devices/zmq_streamer/zmq_streamer.cpp b/devices/zmq_streamer/zmq_streamer.cpp
index 6eccedf..7f4e8a5 100644
--- a/devices/zmq_streamer/zmq_streamer.cpp
+++ b/devices/zmq_streamer/zmq_streamer.cpp
@@ -112,11 +112,7 @@ int main (int argc, char *argv [])
n++;
}
- zmq::message_t msg;
- while (true) {
- in_socket.recv (&msg);
- out_socket.send (msg);
- }
+ zmq::device (ZMQ_FORWARDER, in_socket, out_socket);
return 0;
}