working commit
This commit is contained in:
+4
-4
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user