Mercurial > hg > nginx
comparison src/os/unix/ngx_os.h @ 362:7650aea1816f
nginx-0.0.7-2004-06-21-19:59:32 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 21 Jun 2004 15:59:32 +0000 |
parents | a472bfb778b3 |
children | 018569a8f09c |
comparison
equal
deleted
inserted
replaced
361:446782c909b3 | 362:7650aea1816f |
---|---|
25 | 25 |
26 typedef struct { | 26 typedef struct { |
27 ssize_t (*recv)(ngx_connection_t *c, u_char *buf, size_t size); | 27 ssize_t (*recv)(ngx_connection_t *c, u_char *buf, size_t size); |
28 ssize_t (*recv_chain)(ngx_connection_t *c, ngx_chain_t *in); | 28 ssize_t (*recv_chain)(ngx_connection_t *c, ngx_chain_t *in); |
29 ssize_t (*send)(ngx_connection_t *c, u_char *buf, size_t size); | 29 ssize_t (*send)(ngx_connection_t *c, u_char *buf, size_t size); |
30 ngx_chain_t *(*send_chain)(ngx_connection_t *c, ngx_chain_t *in); | 30 ngx_chain_t *(*send_chain)(ngx_connection_t *c, ngx_chain_t *in, |
31 off_t limit); | |
31 int flags; | 32 int flags; |
32 } ngx_os_io_t; | 33 } ngx_os_io_t; |
33 | 34 |
34 | 35 |
35 void ngx_debug_init(); | 36 void ngx_debug_init(); |
39 int ngx_posix_post_conf_init(ngx_log_t *log); | 40 int ngx_posix_post_conf_init(ngx_log_t *log); |
40 | 41 |
41 | 42 |
42 ssize_t ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size); | 43 ssize_t ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size); |
43 ssize_t ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *entry); | 44 ssize_t ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *entry); |
44 ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in); | 45 ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in, |
46 off_t limit); | |
45 | 47 |
46 | 48 |
47 extern ngx_os_io_t ngx_os_io; | 49 extern ngx_os_io_t ngx_os_io; |
48 extern int ngx_max_sockets; | 50 extern int ngx_max_sockets; |
49 extern int ngx_inherited_nonblocking; | 51 extern int ngx_inherited_nonblocking; |