Move Udp headers to correct location

This commit is contained in:
2020-04-17 16:07:24 +02:00
parent 58407c28f8
commit 51398276fa
2 changed files with 0 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
#ifndef UDPRECVMODULE_HPP
#define UDPRECVMODULE_HPP
#include "RingBuffer.hpp"
#include <thread>
class UdpRecvModule {
RingBuffer<UdpFrameMetadata>& ring_buffer_;
std::atomic_bool is_receiving_;
std::thread receiving_thread_;
protected:
void receive_thread(
const uint16_t udp_port,
const size_t frame_size);
public:
UdpRecvModule(RingBuffer<UdpFrameMetadata>& ring_buffer);
virtual ~UdpRecvModule();
void start_recv(
const uint16_t udp_port,
const size_t frame_n_bytes);
void stop_recv();
bool is_receiving();
};
#endif // UDPRECVMODULE_HPP