2003-05-19 12:39:14 -04:00
|
|
|
|
2003-05-20 11:37:55 -04:00
|
|
|
#include <ngx_config.h>
|
|
|
|
#include <ngx_core.h>
|
|
|
|
|
|
|
|
|
|
|
|
int ngx_max_sockets;
|
|
|
|
|
|
|
|
|
|
|
|
ngx_os_io_t ngx_os_io = {
|
2003-05-21 09:28:21 -04:00
|
|
|
ngx_wsarecv,
|
2003-05-20 11:37:55 -04:00
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2003-05-19 12:39:14 -04:00
|
|
|
|
|
|
|
int ngx_os_init(ngx_log_t *log)
|
|
|
|
{
|
2003-05-20 11:37:55 -04:00
|
|
|
if (ngx_init_sockets(log) == NGX_ERROR) {
|
2003-05-19 12:39:14 -04:00
|
|
|
return NGX_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NGX_OK;
|
|
|
|
}
|