Added source_id to the buffer reader

This commit is contained in:
2020-05-20 16:53:00 +02:00
parent ab035bd6ef
commit 7c5d6091e6
+4 -1
View File
@@ -17,6 +17,7 @@ void sf_replay (
void* socket,
const string& device,
const string& channel_name,
const uint16_t source_id,
const uint64_t start_pulse_id,
const uint64_t stop_pulse_id)
{
@@ -107,7 +108,9 @@ int main (int argc, char *argv[]) {
if (zmq_bind(socket, ipc_address.c_str()) != 0)
throw runtime_error(strerror (errno));
sf_replay(socket, device, channel_name, start_pulse_id, stop_pulse_id);
sf_replay(
socket, device, channel_name, source_id,
start_pulse_id, stop_pulse_id);
zmq_close(socket);
zmq_ctx_destroy(ctx);