comparison src/os/win32/ngx_os.h @ 183:4c698194c56d

nginx-0.0.1-2003-11-13-19:16:33 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 13 Nov 2003 16:16:33 +0000
parents
children 1bf718ce0dde
comparison
equal deleted inserted replaced
182:3c49eaf3f522 183:4c698194c56d
1 ifndef _NGX_OS_H_INCLUDED_
2 #define _NGX_OS_H_INCLUDED_
3
4
5 #include <ngx_config.h>
6 #include <ngx_core.h>
7
8 #define NGX_IO_SENDFILE 1
9 #define NGX_IO_ZEROCOPY 2
10
11 #if (HAVE_SENDFILE)
12 #define NGX_HAVE_SENDFILE NGX_IO_SENDFILE
13 #else
14 #define NGX_HAVE_SENDFILE 0
15 #endif
16
17 #if (HAVE_ZEROCOPY)
18 #define NGX_HAVE_ZEROCOPY NGX_IO_ZEROCOPY
19 #else
20 #define NGX_HAVE_ZEROCOPY 0
21 #endif
22
23
24
25 typedef struct {
26 ssize_t (*recv)(ngx_connection_t *c, char *buf, size_t size);
27 ssize_t (*recv_chain)(ngx_connection_t *c, ngx_chain_t *in);
28 ssize_t (*send)(ngx_connection_t *c, char *buf, size_t size);
29 ngx_chain_t *(*send_chain)(ngx_connection_t *c, ngx_chain_t *in);
30 int flags;
31 } ngx_os_io_t;
32
33
34 int ngx_os_init(ngx_log_t *log);
35
36
37 extern ngx_os_io_t ngx_os_io;
38 extern int ngx_max_sockets;
39 extern int ngx_inherited_nonblocking;
40 extern int ngx_win32_version;
41
42
43 extern int restart;
44 extern int rotate;
45
46
47
48 #endif /* _NGX_OS_H_INCLUDED_ */
49