working commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
|
||||
#ifndef NETCLIENT_HPP
|
||||
#define NETCLIENT_HPP
|
||||
|
||||
#include <expected>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <span>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
class NetClient {
|
||||
public:
|
||||
NetClient(void);
|
||||
virtual std::expected<void, std::string> Connect(std::string address, const int port);
|
||||
virtual std::expected<int, std::string> Write(std::string payload);
|
||||
virtual std::expected<int, std::string> Read(std::string& buffer, int size);
|
||||
virtual ~NetClient(void);
|
||||
NetClient(const NetClient&) = delete;
|
||||
NetClient& operator=(const NetClient&) = delete;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user