working commit
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@
|
||||
#include <expected>
|
||||
#include <string>
|
||||
|
||||
class Handler {
|
||||
class SocketHandler {
|
||||
public:
|
||||
void Handle(int sock);
|
||||
};
|
||||
@@ -17,7 +17,7 @@ private:
|
||||
public:
|
||||
explicit Service(int port);
|
||||
std::expected<void, std::string> Bind(void);
|
||||
std::expected<void, std::string> Listen(Handler *handler);
|
||||
std::expected<void, std::string> Listen(SocketHandler *handler);
|
||||
~Service();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user