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

21 lines
516 B
C++

#include <expected>
#include <string>
#include <vector>
#include <span>
#include <iostream>
#include <netclient.hpp>
class TCPClient : public NetClient {
private:
int sock;
int family;
public:
TCPClient(void);
std::expected<void, std::string> Connect(std::string address, const int port);
std::expected<int, std::string> Write(std::string payload) override;
std::expected<int, std::string> Read(std::string& buffer, int size) override;
~TCPClient(void);
};