Connection and payload quite done
This commit is contained in:
@@ -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();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user