working commit

This commit is contained in:
Олег Бородин
2026-05-05 11:37:10 +02:00
parent bd4df1e3da
commit eda9b8986b
62 changed files with 7546 additions and 476 deletions
+23
View File
@@ -0,0 +1,23 @@
#ifndef TSERVICE_HPP
#define TSERVICE_HPP
#include <expected>
#include <string>
#include <sockhand.hpp>
class TCPService {
private:
int port;
int sock;
public:
explicit TCPService(int port);
std::expected<void, std::string> Bind(void);
std::expected<void, std::string> Listen(void);
void Handle(int sock);
~TCPService();
};
#endif