2002-08-16 23:27:03 +08:00
|
|
|
#ifndef _NGX_SOCKET_H_INCLUDED_
|
|
|
|
#define _NGX_SOCKET_H_INCLUDED_
|
|
|
|
|
|
|
|
|
|
|
|
#include <ngx_config.h>
|
2002-08-20 22:48:28 +08:00
|
|
|
#include <ngx_log.h>
|
2002-08-16 23:27:03 +08:00
|
|
|
|
2002-08-20 22:48:28 +08:00
|
|
|
typedef SOCKET ngx_socket_t;
|
2002-08-16 23:27:03 +08:00
|
|
|
|
|
|
|
void ngx_init_sockets(ngx_log_t *log);
|
|
|
|
|
|
|
|
int ngx_nonblocking_n(s);
|
2002-08-20 22:48:28 +08:00
|
|
|
#define ngx_nonblocking_n "ioctlsocket (FIONBIO)"
|
2002-08-16 23:27:03 +08:00
|
|
|
|
2002-08-20 22:48:28 +08:00
|
|
|
#define ngx_close_socket closesocket
|
|
|
|
#define ngx_close_socket_n "closesocket"
|
2002-08-16 23:27:03 +08:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* _NGX_SOCKET_H_INCLUDED_ */
|