working commit
This commit is contained in:
@@ -8,12 +8,20 @@
|
||||
|
||||
#include <sockhand.hpp>
|
||||
|
||||
class ClientSlot {
|
||||
private:
|
||||
bool free;
|
||||
int num;
|
||||
};
|
||||
|
||||
|
||||
class TunService {
|
||||
private:
|
||||
std::string tunnelnet;
|
||||
std::vector<std::string> localnets;
|
||||
int listenport;
|
||||
int sock;
|
||||
std::vector<ClientSlot> clientSlots;
|
||||
public:
|
||||
explicit TunService(int port, std::string tunnelnet, std::vector<std::string> localnets);
|
||||
std::expected<void, std::string> Bind(void);
|
||||
|
||||
Reference in New Issue
Block a user