mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-30 03:38:28 +02:00
Fix IPC base and URL
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user