diff options
| author | chai <chaifix@163.com> | 2021-10-20 13:40:34 +0800 |
|---|---|---|
| committer | chai <chaifix@163.com> | 2021-10-20 13:40:34 +0800 |
| commit | ff0f488c97fe8b554b909a0057cebc4c860eac8f (patch) | |
| tree | 4e47262b52ffce7e9cfeaaeeab46371243bcaa78 /ThirdParty/luasocket/src/wsocket.h | |
| parent | dde719dd575090b36aaa3ad85bb3cabf33f36c5a (diff) | |
+luasocket src
Diffstat (limited to 'ThirdParty/luasocket/src/wsocket.h')
| -rw-r--r-- | ThirdParty/luasocket/src/wsocket.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ThirdParty/luasocket/src/wsocket.h b/ThirdParty/luasocket/src/wsocket.h new file mode 100644 index 0000000..3986640 --- /dev/null +++ b/ThirdParty/luasocket/src/wsocket.h @@ -0,0 +1,33 @@ +#ifndef WSOCKET_H +#define WSOCKET_H +/*=========================================================================*\ +* Socket compatibilization module for Win32 +* LuaSocket toolkit +\*=========================================================================*/ + +/*=========================================================================*\ +* WinSock include files +\*=========================================================================*/ +#include <winsock2.h> +#include <ws2tcpip.h> + +typedef int socklen_t; +typedef SOCKADDR_STORAGE t_sockaddr_storage; +typedef SOCKET t_socket; +typedef t_socket *p_socket; + +#ifndef IPV6_V6ONLY +#define IPV6_V6ONLY 27 +#endif + +#define SOCKET_INVALID (INVALID_SOCKET) + +#ifndef SO_REUSEPORT +#define SO_REUSEPORT SO_REUSEADDR +#endif + +#ifndef AI_NUMERICSERV +#define AI_NUMERICSERV (0) +#endif + +#endif /* WSOCKET_H */ |
