mirror of
https://github.com/nginx/nginx.git
synced 2025-01-09 19:48:26 +08:00
24 lines
562 B
C
24 lines
562 B
C
#ifndef _NGX_SOCKET_H_INCLUDED_
|
|
#define _NGX_SOCKET_H_INCLUDED_
|
|
|
|
|
|
#include <ngx_config.h>
|
|
#include <ngx_log.h>
|
|
|
|
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_ */
|