Mercurial > hg > nginx
comparison src/core/ngx_connection.h @ 91:637625a2acdb
nginx-0.0.1-2003-05-19-20:39:14 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 19 May 2003 16:39:14 +0000 |
parents | 5f6d848dcbef |
children | 19cc647ecd91 |
comparison
equal
deleted
inserted
replaced
90:37530da31268 | 91:637625a2acdb |
---|---|
79 EV_VNODE should notify by some signal if diretory tree is changed | 79 EV_VNODE should notify by some signal if diretory tree is changed |
80 or stat if aged >= N seconds (big enough) | 80 or stat if aged >= N seconds (big enough) |
81 #endif | 81 #endif |
82 | 82 |
83 | 83 |
84 typedef struct { | |
85 ssize_t (*recv)(ngx_connection_t *c, char *buf, size_t size); | |
86 void *dummy_recv_chain; | |
87 void *dummy_send; | |
88 ngx_chain_t *(*send_chain)(ngx_connection_t *c, ngx_chain_t *in); | |
89 } ngx_os_io_t; | |
90 | |
91 | |
92 extern ngx_os_io_t ngx_io; | |
93 | |
94 | |
95 | |
84 extern ngx_chain_t *(*ngx_write_chain_proc) | 96 extern ngx_chain_t *(*ngx_write_chain_proc) |
85 (ngx_connection_t *c, ngx_chain_t *in); | 97 (ngx_connection_t *c, ngx_chain_t *in); |
86 | 98 |
87 | 99 |
88 ssize_t ngx_recv_chain(ngx_connection_t *c, ngx_chain_t *ce); | 100 ssize_t ngx_recv_chain(ngx_connection_t *c, ngx_chain_t *ce); |
101 #if 0 | |
89 ngx_chain_t *ngx_write_chain(ngx_connection_t *c, ngx_chain_t *in, off_t flush); | 102 ngx_chain_t *ngx_write_chain(ngx_connection_t *c, ngx_chain_t *in, off_t flush); |
103 #endif | |
90 | 104 |
91 | 105 |
92 /* TODO: move it to OS specific file */ | 106 /* TODO: move it to OS specific file */ |
93 #if (__FreeBSD__) | 107 #if (__FreeBSD__) |
94 ngx_chain_t *ngx_freebsd_write_chain(ngx_connection_t *c, ngx_chain_t *in); | 108 ngx_chain_t *ngx_freebsd_write_chain(ngx_connection_t *c, ngx_chain_t *in); |