Mercurial > hg > nginx-quic
view src/os/win32/ngx_socket.h @ 34:95f1c2a938f3
nginx-0.0.1-2002-12-20-09:54:55 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 20 Dec 2002 06:54:55 +0000 |
parents | 2aba961a1d34 |
children | e8cdc2989cee |
line wrap: on
line source
#ifndef _NGX_SOCKET_H_INCLUDED_ #define _NGX_SOCKET_H_INCLUDED_ #include <ngx_config.h> #include <ngx_log.h> #define NGX_WRITE_SHUTDOWN SD_SEND #define INET_ADDRSTRLEN 16 typedef SOCKET ngx_socket_t; typedef int socklen_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(ngx_socket_t s); #define ngx_nonblocking_n "ioctlsocket(FIONBIO)" #define ngx_shutdown_socket shutdown #define ngx_shutdown_socket_n "shutdown()" #define ngx_close_socket closesocket #define ngx_close_socket_n "closesocket()" #endif /* _NGX_SOCKET_H_INCLUDED_ */