2003-06-26 11:47:49 -07:00
|
|
|
#ifndef WSOCKET_H
|
|
|
|
#define WSOCKET_H
|
2003-06-10 18:42:18 -07:00
|
|
|
/*=========================================================================*\
|
|
|
|
* Socket compatibilization module for Win32
|
2003-06-26 11:47:49 -07:00
|
|
|
* LuaSocket toolkit
|
2003-06-10 18:42:18 -07:00
|
|
|
\*=========================================================================*/
|
|
|
|
|
|
|
|
/*=========================================================================*\
|
2003-06-26 11:47:49 -07:00
|
|
|
* WinSock include files
|
2003-06-10 18:42:18 -07:00
|
|
|
\*=========================================================================*/
|
2009-05-27 02:31:38 -07:00
|
|
|
#include <winsock2.h>
|
|
|
|
#include <ws2tcpip.h>
|
2003-06-10 18:42:18 -07:00
|
|
|
|
|
|
|
typedef int socklen_t;
|
2012-12-11 10:35:27 -08:00
|
|
|
typedef SOCKADDR_STORAGE t_sockaddr_storage;
|
2005-10-06 21:40:59 -07:00
|
|
|
typedef SOCKET t_socket;
|
|
|
|
typedef t_socket *p_socket;
|
2003-06-10 18:42:18 -07:00
|
|
|
|
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)
|
2003-06-10 18:42:18 -07:00
|
|
|
|
2009-05-27 02:31:38 -07:00
|
|
|
#ifndef SO_REUSEPORT
|
|
|
|
#define SO_REUSEPORT SO_REUSEADDR
|
|
|
|
#endif
|
|
|
|
|
2003-06-10 18:42:18 -07:00
|
|
|
#endif /* WSOCKET_H */
|