working commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
extern "C" {
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
}
|
||||
|
||||
#include <expected>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <span>
|
||||
#include <iostream>
|
||||
|
||||
#include <cstring>
|
||||
#include <expected>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
#include <netclient.hpp>
|
||||
|
||||
NetClient::NetClient() {}
|
||||
|
||||
std::expected<void, std::string> NetClient::Connect(const std::string naddress, const int port) {
|
||||
return {};
|
||||
}
|
||||
|
||||
std::expected<int, std::string> NetClient::Write(std::string payload) {
|
||||
return payload.size();
|
||||
}
|
||||
|
||||
std::expected<int, std::string> NetClient::Read(std::string& res, int size) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
NetClient::~NetClient() {}
|
||||
|
||||
Reference in New Issue
Block a user