Renamed HLAPI to VoidNet_HL and VoidNet to VoidNet_LL
This commit is contained in:
38
include/VoidNet_LL/Net.hpp
Normal file
38
include/VoidNet_LL/Net.hpp
Normal file
@ -0,0 +1,38 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#undef SendMessage
|
||||
#undef GetMessage
|
||||
#undef SetPort
|
||||
#undef GetPort
|
||||
#undef max
|
||||
#undef min
|
||||
|
||||
#define poll WSAPoll
|
||||
#define ioctl ioctlsocket
|
||||
|
||||
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#define SOCKET_ERROR -1
|
||||
#define NO_ERROR 0
|
||||
#define INVALID_SOCKET NO_ERROR
|
||||
|
||||
#define SOCKET int
|
||||
#define closesocket close
|
||||
|
||||
#endif
|
||||
|
||||
#define DEFAULT_SERVER_PORT 61250
|
||||
Reference in New Issue
Block a user