feat: min code change linux support
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user