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

23 lines
357 B
C++

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