mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-02 07:44:13 +02:00
Make IPC address a parameter in buffer config
This commit is contained in:
@@ -33,8 +33,7 @@ int main (int argc, char *argv[]) {
|
||||
int source_id = atoi(argv[4]);
|
||||
|
||||
stringstream ipc_stream;
|
||||
// TODO: Move this into config.
|
||||
ipc_stream << "ipc:///tmp/sf-live-" << source_id;
|
||||
ipc_stream << BUFFER_LIVE_IPC_URL << source_id;
|
||||
const auto ipc_address = ipc_stream.str();
|
||||
|
||||
auto ctx = zmq_ctx_new();
|
||||
|
||||
@@ -71,7 +71,7 @@ int main (int argc, char *argv[]) {
|
||||
const uint16_t source_id = (uint16_t) atoi(argv[3]);
|
||||
|
||||
stringstream ipc_stream;
|
||||
ipc_stream << "ipc:///tmp/sf-live-" << (int)source_id;
|
||||
ipc_stream << BUFFER_LIVE_IPC_URL << (int)source_id;
|
||||
const auto ipc_address = ipc_stream.str();
|
||||
|
||||
#ifdef DEBUG_OUTPUT
|
||||
|
||||
@@ -46,9 +46,8 @@ int main (int argc, char *argv[])
|
||||
|
||||
auto ctx = zmq_ctx_new();
|
||||
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);
|
||||
LiveRecvModule recv_module(queue, n_modules, ctx, BUFFER_LIVE_IPC_URL);
|
||||
|
||||
// 0mq sockets to streamvis and live analysis
|
||||
void *socket_streamvis = zmq_socket(ctx, ZMQ_PUB);
|
||||
|
||||
Reference in New Issue
Block a user