feat: min code change linux support

This commit is contained in:
mk
2025-11-03 21:03:17 -03:00
parent 777a006792
commit 8d424b7210
19 changed files with 374 additions and 8 deletions

View File

@@ -12,5 +12,10 @@ private:
public:
NotifyClientRequestConnect( std::string clientIp, int32_t clientPort );
#ifdef __WIN32
ByteBuffer &Serialize() override;
};
#endif
#ifdef __linux__
virtual ByteBuffer &Serialize() ;
#endif
};

View File

@@ -3,7 +3,16 @@
#include <memory>
#include <vector>
#include <mutex>
#if defined(_WIN32) || defined(WIN32)
#include <winsock2.h>
#endif
#ifdef __linux__
#define SOCKET int
#define INVALID_SOCKET -1
#define SOCKET_ERROR -1
#define closesocket(s) close(s)
#endif
#include "GenericNetRequest.h"
#include "GenericNetResponse.h"