Go to the documentation of this file.
44 #ifndef __COMPATIBILITY_H__
45 #define __COMPATIBILITY_H__
62 #define _WIN32_WINNT 0x0501
63 #endif // _WIN32_WINNT
74 void sleep(
int delay_s);
77 const char *inet_ntop(
int af,
const void *src,
char *dst, socklen_t cnt);
78 int inet_pton(
int af,
const char *src,
void *dst);
82 #include <sys/types.h>
83 #include <sys/socket.h>
84 #include <arpa/inet.h>
85 #include <netinet/in.h>
97 #define SOCKET_ERROR (-1)
98 #endif // SOCKET_ERROR
100 #ifndef INVALID_SOCKET
104 #define INVALID_SOCKET (SOCKET)(~0)
105 #endif // INVALID_SOCKET