summaryrefslogtreecommitdiff
path: root/devices/zmq_streamer
diff options
context:
space:
mode:
authorJon Dyte <jon@totient.co.uk>2010-04-07 08:20:01 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-04-07 08:20:01 +0200
commitedfd05df8ef58afc498795cb74906c07ee396f76 (patch)
tree8b9eb27265ffc16a170cfab8b912279c02dfd00f /devices/zmq_streamer
parent0777567e8911382ac42859f907730df023ebec26 (diff)
devices can be created via API
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;
}