Refactor to work on Linux / Unix, fix some compiler errors.

CMakeLists was also modified to make this work, but its scuffed
and i will hold on to that for a while longer
This commit is contained in:
Lion Kortlepel
2020-11-01 02:00:27 +01:00
parent 02fbe72eed
commit 8bc35fb82e
18 changed files with 254 additions and 41 deletions

View File

@@ -3,7 +3,12 @@
///
#pragma once
#ifdef __WIN32
#include <WS2tcpip.h>
#else
#include <arpa/inet.h>
#define SOCKET int
#endif
#include "Buffer.h"
#include <string>
#include <vector>
@@ -67,4 +72,4 @@ struct ClientInterface{
}
};
extern ClientInterface* CI;
extern ClientInterface* CI;