Fix IPC base and URL

This commit is contained in:
2021-07-06 16:02:29 +02:00
parent 51b1cd2d16
commit 32de4886d4
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ namespace buffer_config {
// HWM for live stream from buffer.
const int BUFFER_ZMQ_RCVHWM = 100;
// IPC address of the live stream.
const std::string BUFFER_LIVE_IPC_URL = "ipc:///tmp/sf-live-";
const std::string IPC_URL_BASE = "ipc:///tmp/std-daq-";
// Number of image slots in ram buffer - 10 seconds should be enough
const int RAM_BUFFER_N_SLOTS = 100 * 10;
}
+2 -2
View File
@@ -94,7 +94,7 @@ void BufferUtils::create_destination_folder(const string& output_file)
void* BufferUtils::connect_socket(
void* ctx, const string& detector_name, const string& stream_name)
{
string ipc_address = buffer_config::BUFFER_LIVE_IPC_URL +
string ipc_address = buffer_config::IPC_URL_BASE +
detector_name + "-" +
stream_name;
@@ -127,7 +127,7 @@ void* BufferUtils::connect_socket(
void* BufferUtils::bind_socket(
void* ctx, const string& detector_name, const string& stream_name)
{
string ipc_address = BUFFER_LIVE_IPC_URL +
string ipc_address = IPC_URL_BASE +
detector_name + "-" +
stream_name;
+1 -1
View File
@@ -39,7 +39,7 @@ int main (int argc, char *argv[])
auto ctx = zmq_ctx_new();
zmq_ctx_set(ctx, ZMQ_IO_THREADS, LIVE_ZMQ_IO_THREADS);
auto receiver = BufferUtils::connect_socket(
ctx, config.detector_name, "writer-agent");
ctx, config.detector_name, "writer_agent");
const size_t IMAGE_N_BYTES = 12;
RamBuffer image_buffer(config.detector_name + "_assembler",