working commit

This commit is contained in:
Олег Бородин
2026-05-20 18:32:34 +02:00
parent 4bdd82ddb9
commit 46e1193cb2
2 changed files with 24 additions and 25 deletions
+8 -2
View File
@@ -8,15 +8,21 @@
#include <sockhand.hpp>
class NetworkSlot {
class TunNetwork {
public:
TunNetwork(std::string iladdr, std::string iraddr);
std::string laddr;
std::string raddr;
bool used;
};
class TunService {
private:
std::string tunnelnet;
std::vector<std::string> localnets;
std::vector<NetworkSlot> netslots;
std::vector<TunNetwork> tunnets;
int listenport;
int sock;
public: