Mercurial > hg > nginx
comparison src/os/win32/ngx_os.h @ 395:f8f0f1834266
nginx-0.0.7-2004-07-16-21:11:43 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 16 Jul 2004 17:11:43 +0000 |
parents | 018569a8f09c |
children | 0526206251f6 |
comparison
equal
deleted
inserted
replaced
394:e7a68e14ccd3 | 395:f8f0f1834266 |
---|---|
19 #else | 19 #else |
20 #define NGX_HAVE_ZEROCOPY 0 | 20 #define NGX_HAVE_ZEROCOPY 0 |
21 #endif | 21 #endif |
22 | 22 |
23 | 23 |
24 typedef ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size); | |
25 typedef ssize_t (*ngx_recv_chain_pt)(ngx_connection_t *c, ngx_chain_t *in); | |
26 typedef ssize_t (*ngx_send_pt)(ngx_connection_t *c, u_char *buf, size_t size); | |
27 typedef ngx_chain_t *(*ngx_send_chain_pt)(ngx_connection_t *c, ngx_chain_t *in, | |
28 off_t limit); | |
24 | 29 |
25 typedef struct { | 30 typedef struct { |
26 ssize_t (*recv)(ngx_connection_t *c, u_char *buf, size_t size); | 31 ngx_recv_pt recv; |
27 ssize_t (*recv_chain)(ngx_connection_t *c, ngx_chain_t *in); | 32 ngx_recv_chain_pt recv_chain; |
28 ssize_t (*send)(ngx_connection_t *c, u_char *buf, size_t size); | 33 ngx_send_pt send; |
29 ngx_chain_t *(*send_chain)(ngx_connection_t *c, ngx_chain_t *in, | 34 ngx_send_chain_pt send_chain; |
30 off_t limit); | |
31 int flags; | 35 int flags; |
32 } ngx_os_io_t; | 36 } ngx_os_io_t; |
33 | 37 |
34 | 38 |
35 int ngx_os_init(ngx_log_t *log); | 39 int ngx_os_init(ngx_log_t *log); |