Files
stvpn/sockhand.hpp
T
Олег Бородин 9540ac05d4 working commit
2026-05-06 15:10:19 +02:00

26 lines
411 B
C++

#ifndef SOCKHAND_HPP
#define SOCKHAND_HPP
#include <expected>
#include <semaphore>
#include <string>
#include <mutex>
#include <interface.hpp>
class SocketHandler {
private:
int sock;
std::mutex intMtx;
std::binary_semaphore done{0};
Interface interface;
public:
void Handle(int newsock);
void RecvMessages(void);
void SendMessages(void);
};
#endif