Adjust settings to new config

This commit is contained in:
2020-05-08 14:25:01 +02:00
parent 79c6edbfb6
commit 4912bbe38d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ int main (int argc, char *argv[]) {
auto ctx = zmq_ctx_new();
auto socket = zmq_socket(ctx, ZMQ_PUB);
const int sndhwm = BUFFER_LIVE_SEND_HWM;
const int sndhwm = BUFFER_ZMQ_SNDHWM;
if (zmq_setsockopt(socket, ZMQ_SNDHWM, &sndhwm, sizeof(sndhwm)) != 0)
throw runtime_error(strerror (errno));
+1 -1
View File
@@ -45,7 +45,7 @@ int main (int argc, char *argv[])
WRITER_RB_BUFFER_SLOTS);
auto ctx = zmq_ctx_new();
zmq_ctx_set (ctx, ZMQ_IO_THREADS, WRITER_ZMQ_IO_THREADS);
zmq_ctx_set (ctx, ZMQ_IO_THREADS, STREAM_ZMQ_IO_THREADS);
string ipc_prefix = "ipc:///tmp/sf-live-";
LiveRecvModule recv_module(queue, n_modules, ctx, ipc_prefix);