Files
stvpn/tservice.hpp
T
Олег Бородин eda9b8986b working commit
2026-05-05 11:37:10 +02:00

24 lines
393 B
C++

#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