working commit
This commit is contained in:
+3
-5
@@ -8,10 +8,7 @@
|
||||
|
||||
#include <sockhand.hpp>
|
||||
|
||||
class ClientSlot {
|
||||
private:
|
||||
bool free;
|
||||
int num;
|
||||
class NetworkSlot {
|
||||
};
|
||||
|
||||
|
||||
@@ -19,11 +16,12 @@ class TunService {
|
||||
private:
|
||||
std::string tunnelnet;
|
||||
std::vector<std::string> localnets;
|
||||
std::vector<NetworkSlot> netslots;
|
||||
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> Init(void);
|
||||
std::expected<void, std::string> Bind(void);
|
||||
std::expected<void, std::string> Listen(void);
|
||||
void Handle(int sock);
|
||||
|
||||
Reference in New Issue
Block a user