working commit

This commit is contained in:
2026-05-15 15:30:29 +02:00
parent 879481feab
commit 886684e224
28 changed files with 629 additions and 81 deletions
+7 -4
View File
@@ -4,19 +4,22 @@
#include <expected>
#include <string>
#include <vector>
#include <sockhand.hpp>
class TCPService {
class TunService {
private:
int port;
std::string tunnelnet;
std::vector<std::string> localnets;
int listenport;
int sock;
public:
explicit TCPService(int port);
explicit TunService(int port, std::string tunnelnet, std::vector<std::string> localnets);
std::expected<void, std::string> Bind(void);
std::expected<void, std::string> Listen(void);
void Handle(int sock);
~TCPService();
~TunService();
};
#endif