From edfd05df8ef58afc498795cb74906c07ee396f76 Mon Sep 17 00:00:00 2001 From: Jon Dyte Date: Wed, 7 Apr 2010 08:20:01 +0200 Subject: devices can be created via API --- devices/zmq_streamer/zmq_streamer.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'devices/zmq_streamer') 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; } -- cgit v1.2.3