#ifndef UPNPINET_H #define UPNPINET_H /*! * \file * * \brief Provides a platform independent way to include TCP/IP types and functions. */ #include "UpnpUniStd.h" /* for close() */ #ifdef WIN32 #include #include #include #define UpnpCloseSocket closesocket #else /* WIN32 */ #include #if (defined(BSD) && BSD >= 199306) || defined (__FreeBSD_kernel__) #include /* Do not move or remove the include below for "sys/socket"! * Will break FreeBSD builds. */ #include #endif #include /* SOCKET is unsigned and is not a file descriptor on win32. */ #define SOCKET int /* INVALID_SOCKET is unsigned on win32. */ #define INVALID_SOCKET (-1) /* select() returns SOCKET_ERROR on win32. */ #define SOCKET_ERROR (-1) #define UpnpCloseSocket close #endif /* WIN32 */ #endif /* UPNPINET_H */