mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-06-06 11:58:41 +02:00
merge with eiger for gpfs writing
This commit is contained in:
@@ -23,10 +23,10 @@ namespace BufferUtils
|
||||
return os << det_config.detector_name << ' '
|
||||
<< det_config.detector_type << ' '
|
||||
<< det_config.n_modules << ' '
|
||||
<< det_config.start_udp_port << ' '
|
||||
<< det_config.bit_depth << ' '
|
||||
<< det_config.image_height << ' '
|
||||
<< det_config.image_width << ' ';
|
||||
<< det_config.image_width << ' '
|
||||
<< det_config.start_udp_port << ' ';
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -98,6 +98,11 @@ void* BufferUtils::connect_socket(
|
||||
detector_name + "-" +
|
||||
stream_name;
|
||||
|
||||
#ifdef DEBUG_OUTPUT
|
||||
cout << "[BufferUtils::connect_socket]";
|
||||
cout << " IPC address: " << ipc_address << endl;
|
||||
#endif
|
||||
|
||||
void* socket = zmq_socket(ctx, ZMQ_SUB);
|
||||
if (socket == nullptr) {
|
||||
throw runtime_error(zmq_strerror(errno));
|
||||
@@ -166,6 +171,12 @@ void* BufferUtils::bind_socket(
|
||||
detector_name + "-" +
|
||||
stream_name;
|
||||
|
||||
#ifdef DEBUG_OUTPUT
|
||||
cout << "[BufferUtils::bind_socket]";
|
||||
cout << " IPC address: " << ipc_address << endl;
|
||||
#endif
|
||||
|
||||
|
||||
void* socket = zmq_socket(ctx, ZMQ_PUB);
|
||||
|
||||
const int sndhwm = BUFFER_ZMQ_SNDHWM;
|
||||
|
||||
Reference in New Issue
Block a user