summaryrefslogtreecommitdiff
path: root/devices
diff options
context:
space:
mode:
Diffstat (limited to 'devices')
-rw-r--r--devices/zmq_forwarder/zmq_forwarder.cpp2
-rw-r--r--devices/zmq_queue/zmq_queue.cpp2
-rw-r--r--devices/zmq_streamer/zmq_streamer.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/devices/zmq_forwarder/zmq_forwarder.cpp b/devices/zmq_forwarder/zmq_forwarder.cpp
index 496c3f6..96c9ae5 100644
--- a/devices/zmq_forwarder/zmq_forwarder.cpp
+++ b/devices/zmq_forwarder/zmq_forwarder.cpp
@@ -52,7 +52,7 @@ int main (int argc, char *argv [])
}
// TODO: make the number of I/O threads configurable.
- zmq::context_t ctx (1, 1);
+ zmq::context_t ctx (1);
zmq::socket_t in_socket (ctx, ZMQ_SUB);
in_socket.setsockopt (ZMQ_SUBSCRIBE, "", 0);
zmq::socket_t out_socket (ctx, ZMQ_PUB);
diff --git a/devices/zmq_queue/zmq_queue.cpp b/devices/zmq_queue/zmq_queue.cpp
index 1507ecc..3a20620 100644
--- a/devices/zmq_queue/zmq_queue.cpp
+++ b/devices/zmq_queue/zmq_queue.cpp
@@ -52,7 +52,7 @@ int main (int argc, char *argv [])
}
// TODO: make the number of I/O threads configurable.
- zmq::context_t ctx (1, 1, ZMQ_POLL);
+ zmq::context_t ctx (1);
zmq::socket_t in_socket (ctx, ZMQ_XREP);
zmq::socket_t out_socket (ctx, ZMQ_XREQ);
diff --git a/devices/zmq_streamer/zmq_streamer.cpp b/devices/zmq_streamer/zmq_streamer.cpp
index 7f4e8a5..f9dcd00 100644
--- a/devices/zmq_streamer/zmq_streamer.cpp
+++ b/devices/zmq_streamer/zmq_streamer.cpp
@@ -52,7 +52,7 @@ int main (int argc, char *argv [])
}
// TODO: make the number of I/O threads configurable.
- zmq::context_t ctx (1, 1);
+ zmq::context_t ctx (1);
zmq::socket_t in_socket (ctx, ZMQ_UPSTREAM);
zmq::socket_t out_socket (ctx, ZMQ_DOWNSTREAM);