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
+26
View File
@@ -0,0 +1,26 @@
#ifndef UDPRECEIVER_H
#define UDPRECEIVER_H
#include "config.hpp"
#include <sys/socket.h>
#include "RingBuffer.hpp"
class UdpReceiver {
int socket_fd_;
public:
UdpReceiver();
virtual ~UdpReceiver();
bool receive(void* buffer, size_t buffer_n_bytes);
int receive_many(mmsghdr* msgs, const size_t n_msgs);
void bind(
const uint16_t port,
const size_t usec_timeout=config::udp_usec_timeout);
void close();
};
#endif //LIB_CPP_H5_WRITER_UDPRECEIVER_H