mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-21 10:14:36 +02:00
20 lines
436 B
C++
20 lines
436 B
C++
#ifndef SF_DAQ_BUFFER_BUFFERUDPRECEIVER_HPP
|
|
#define SF_DAQ_BUFFER_BUFFERUDPRECEIVER_HPP
|
|
|
|
|
|
#include "UdpReceiver.hpp"
|
|
#include "jungfrau.hpp"
|
|
|
|
class BufferUdpReceiver {
|
|
const int source_id_;
|
|
UdpReceiver udp_receiver_;
|
|
|
|
public:
|
|
BufferUdpReceiver(const int source_id);
|
|
void bind(const uint16_t port);
|
|
void get_frame_from_udp(ModuleFrame& metadata, char* frame_buffer);
|
|
};
|
|
|
|
|
|
#endif //SF_DAQ_BUFFER_BUFFERUDPRECEIVER_HPP
|