comparison src/os/win32/ngx_os.h @ 292:a472bfb778b3

nginx-0.0.3-2004-03-17-00:26:01 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 16 Mar 2004 21:26:01 +0000
parents 0ba4821f4460
children f2755a2885c8
comparison
equal deleted inserted replaced
291:117ccc7c4055 292:a472bfb778b3
21 #endif 21 #endif
22 22
23 23
24 24
25 typedef struct { 25 typedef struct {
26 ssize_t (*recv)(ngx_connection_t *c, char *buf, size_t size); 26 ssize_t (*recv)(ngx_connection_t *c, u_char *buf, size_t size);
27 ssize_t (*recv_chain)(ngx_connection_t *c, ngx_chain_t *in); 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); 28 ssize_t (*send)(ngx_connection_t *c, u_char *buf, size_t size);
29 ngx_chain_t *(*send_chain)(ngx_connection_t *c, ngx_chain_t *in); 29 ngx_chain_t *(*send_chain)(ngx_connection_t *c, ngx_chain_t *in);
30 int flags; 30 int flags;
31 } ngx_os_io_t; 31 } ngx_os_io_t;
32 32
33 33
34 int ngx_os_init(ngx_log_t *log); 34 int ngx_os_init(ngx_log_t *log);
35 35
36 ssize_t ngx_wsarecv(ngx_connection_t *c, char *buf, size_t size); 36 ssize_t ngx_wsarecv(ngx_connection_t *c, u_char *buf, size_t size);
37 ssize_t ngx_overlapped_wsarecv(ngx_connection_t *c, char *buf, size_t size); 37 ssize_t ngx_overlapped_wsarecv(ngx_connection_t *c, u_char *buf, size_t size);
38 ssize_t ngx_wsarecv_chain(ngx_connection_t *c, ngx_chain_t *chain); 38 ssize_t ngx_wsarecv_chain(ngx_connection_t *c, ngx_chain_t *chain);
39 ngx_chain_t *ngx_wsasend_chain(ngx_connection_t *c, ngx_chain_t *in); 39 ngx_chain_t *ngx_wsasend_chain(ngx_connection_t *c, ngx_chain_t *in);
40 ngx_chain_t *ngx_overlapped_wsasend_chain(ngx_connection_t *c, ngx_chain_t *in); 40 ngx_chain_t *ngx_overlapped_wsasend_chain(ngx_connection_t *c, ngx_chain_t *in);
41 41
42 42
44 extern int ngx_max_sockets; 44 extern int ngx_max_sockets;
45 extern int ngx_inherited_nonblocking; 45 extern int ngx_inherited_nonblocking;
46 extern int ngx_win32_version; 46 extern int ngx_win32_version;
47 47
48 48
49 extern ngx_int_t ngx_process;
50
51 extern ngx_int_t ngx_quit;
52 extern ngx_int_t ngx_terminate;
53
54 extern ngx_int_t ngx_reconfigure;
55 extern ngx_int_t ngx_reopen;
56
57
58 49
59 #endif /* _NGX_OS_H_INCLUDED_ */ 50 #endif /* _NGX_OS_H_INCLUDED_ */
60 51