#ifndef SOCKHAND_HPP #define SOCKHAND_HPP #include #include #include #include #include extern const std::string internetPkgMsg; extern const std::string tunAddressMsg; extern const std::string localRouteMsg; class SocketHandler { private: int sock; std::mutex intMtx; std::binary_semaphore done{0}; Interface interface; public: void Handle(int newsock, std::string laddr, std::string raddr, int prefix); void RecvMessages(void); void SendMessages(void); }; #endif