Files
stvpn/uxclient.hpp
T
2026-05-18 14:56:08 +02:00

26 lines
570 B
C++

#include <expected>
#include <string>
#include <vector>
#include <span>
#include <iostream>
#include <semaphore>
#include <interface.hpp>
class UxClient {
private:
int family;
int sock;
std::binary_semaphore done{0};
Interface interface;
std::string tunAddress;
public:
UxClient(void);
std::expected<void, std::string> Connect(std::string address, const int port);
void SendMessages(void);
void RecvMessages(void);
std::expected<void, std::string> Run(void);
~UxClient(void);
};