#ifndef SERVICE_HPP_QWERTY #define SERVICE_HPP_QWERTY #include #include class Handler { public: void Handle(int sock); }; class Service { private: int port; int sock; public: explicit Service(int port); std::expected Bind(void); std::expected Listen(Handler *handler); ~Service(); }; #endif