working commit
This commit is contained in:
+7
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user