mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-21 11:04:36 +02:00
added debug output to BufferUtils bind and connect methods
This commit is contained in:
@@ -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));
|
||||
@@ -131,6 +136,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