Connection and payload quite done

This commit is contained in:
2022-11-07 18:53:11 +01:00
parent 8bdf357e1a
commit 15bb2e874c
5 changed files with 53 additions and 19 deletions

View File

@@ -5,8 +5,6 @@
#include <vector>
#include "Payload.h"
class Payload;
class Connection
{
private:
@@ -18,6 +16,9 @@ private:
socket_creation = 10,
get_ip,
connect,
recv = 20,
send
}error;
void p_HandleError();
@@ -26,7 +27,8 @@ public:
Connection(std::string server_ip, int port);
~Connection();
bool send(std::vector<Payload> payload);
bool send(std::vector<Payload> payload, bool size);
bool send(Payload payload, bool size);
Payload recv();
/**