working commit

This commit is contained in:
2026-04-27 11:53:11 +02:00
parent 43d1cfc2b4
commit ac88dbd051
14 changed files with 281 additions and 148 deletions
+4 -4
View File
@@ -5,16 +5,16 @@
#include <span>
#include <iostream>
//#include <netclient.hpp>
#include <netclient.hpp>
class TCPClient {
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);
std::expected<int, std::string> Read(std::string& buffer, int size);
std::expected<int, std::string> Write(std::string payload) override;
std::expected<int, std::string> Read(std::string& buffer, int size) override;
~TCPClient(void);
};