working commit

This commit is contained in:
Олег Бородин
2026-05-05 11:37:10 +02:00
parent bd4df1e3da
commit eda9b8986b
62 changed files with 7546 additions and 476 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef UPDCLIENT_HPP
#define UPDCLIENT_HPP
class UDPClient {
private:
int sockfd;
std::string address;
int port;
int rmax;
int family;
public:
UDPClient(void);
std::expected<void, std::string> Bind(std::string address, int port);
std::expected<void, std::string> Send(std::string buffer);
std::expected<std::string, std::string> Recv();
void Close(void);
~UDPClient(void);
};
#endif