#ifndef I2_UNIX_H #define I2_UNIX_H #include #include #include #include #include #include typedef int SOCKET; #define INVALID_SOCKET (-1) inline void Sleep(unsigned long milliseconds) { usleep(milliseconds * 1000); } inline void closesocket(int fd) { close(fd); } #endif /* I2_UNIX_H */