aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_socket.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2002-09-02 14:48:24 +0000
committerIgor Sysoev <igor@sysoev.ru>2002-09-02 14:48:24 +0000
commita58e3ca14300fce97b2124233afe140c8d59199f (patch)
treed24eff379cc7dfb5c6952f1bb15735cd63ba2179 /src/os/win32/ngx_socket.h
parent016b85270268989d769bade2004a7c628a47d726 (diff)
downloadnginx-a58e3ca14300fce97b2124233afe140c8d59199f.tar.gz
nginx-a58e3ca14300fce97b2124233afe140c8d59199f.zip
nginx-0.0.1-2002-09-02-18:48:24 import
Diffstat (limited to 'src/os/win32/ngx_socket.h')
-rw-r--r--src/os/win32/ngx_socket.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/os/win32/ngx_socket.h b/src/os/win32/ngx_socket.h
index 2708b5f2f..95e427cb1 100644
--- a/src/os/win32/ngx_socket.h
+++ b/src/os/win32/ngx_socket.h
@@ -5,7 +5,10 @@
#include <ngx_config.h>
#include <ngx_log.h>
+#define INET_ADDRSTRLEN 16
+
typedef SOCKET ngx_socket_t;
+typedef int socklen_t;
void ngx_init_sockets(ngx_log_t *log);
@@ -13,11 +16,12 @@ void ngx_init_sockets(ngx_log_t *log);
WSASocket(af, type, proto, NULL, 0, flags)
#define ngx_socket_n "WSASocket()"
-int ngx_nonblocking_n(s);
+int ngx_nonblocking(ngx_socket_t s);
#define ngx_nonblocking_n "ioctlsocket(FIONBIO)"
#define ngx_close_socket closesocket
#define ngx_close_socket_n "closesocket()"
+
#endif /* _NGX_SOCKET_H_INCLUDED_ */