initial commit

This commit is contained in:
huangweifeng
2026-10-22 09:23:54 +08:00
commit 63f557a39f
4448 changed files with 584487 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
#ifndef UDP_RECEIVER_H
#define UDP_RECEIVER_H
#include <vector>
#include <cstdint>
/**
* @brief The UdpReceiver class for receiving UDP data.
*/
class UdpReceiver {
public:
/**
* @brief Constructor for UdpReceiver.
* @param port The port to listen for UDP data.
*/
UdpReceiver(int port);
/**
* @brief Receive UDP data.
* @return A vector containing received data as uint8_t.
*/
std::vector<uint8_t> ReceiveData();
/**
* @brief Destructor for UdpReceiver.
*/
~UdpReceiver();
private:
int socket_fd_;
};
#endif