#ifndef _NGX_SOCKET_H_INCLUDED_ #define _NGX_SOCKET_H_INCLUDED_ #include #include typedef SOCKET ngx_socket_t; void ngx_init_sockets(ngx_log_t *log); #define ngx_socket(af, type, proto, flags) \ WSASocket(af, type, proto, NULL, 0, flags) #define ngx_socket_n "WSASocket()" int ngx_nonblocking_n(s); #define ngx_nonblocking_n "ioctlsocket(FIONBIO)" #define ngx_close_socket closesocket #define ngx_close_socket_n "closesocket()" #endif /* _NGX_SOCKET_H_INCLUDED_ */