summaryrefslogtreecommitdiff
path: root/devices/zmq_forwarder
diff options
context:
space:
mode:
Diffstat (limited to 'devices/zmq_forwarder')
-rw-r--r--devices/zmq_forwarder/zmq_forwarder.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/devices/zmq_forwarder/zmq_forwarder.cpp b/devices/zmq_forwarder/zmq_forwarder.cpp
index 092bc47..496c3f6 100644
--- a/devices/zmq_forwarder/zmq_forwarder.cpp
+++ b/devices/zmq_forwarder/zmq_forwarder.cpp
@@ -113,11 +113,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;
}