luasocket/src/wsocket.h

30 lines
782 B
C
Raw Normal View History

#ifndef WSOCKET_H
#define WSOCKET_H
/*=========================================================================*\
* Socket compatibilization module for Win32
* LuaSocket toolkit
\*=========================================================================*/
/*=========================================================================*\
* WinSock include files
\*=========================================================================*/
2009-05-27 02:31:38 -07:00
#include <winsock2.h>
#include <ws2tcpip.h>
typedef int socklen_t;
typedef SOCKADDR_STORAGE t_sockaddr_storage;
2005-10-06 21:40:59 -07:00
typedef SOCKET t_socket;
typedef t_socket *p_socket;
2013-05-25 03:07:38 -07:00
#ifndef IPV6_V6ONLY
#define IPV6_V6ONLY 27
#endif
2005-10-06 21:40:59 -07:00
#define SOCKET_INVALID (INVALID_SOCKET)
2009-05-27 02:31:38 -07:00
#ifndef SO_REUSEPORT
#define SO_REUSEPORT SO_REUSEADDR
#endif
#endif /* WSOCKET_H */