comparison src/os/unix/ngx_os.h @ 393:5659d773cfa8

nginx-0.0.7-2004-07-15-20:35:51 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 15 Jul 2004 16:35:51 +0000
parents 018569a8f09c
children 0526206251f6
comparison
equal deleted inserted replaced
392:d1222d46b3f9 393:5659d773cfa8
20 #else 20 #else
21 #define NGX_HAVE_ZEROCOPY 0 21 #define NGX_HAVE_ZEROCOPY 0
22 #endif 22 #endif
23 23
24 24
25 typedef ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size);
26 typedef ssize_t (*ngx_recv_chain_pt)(ngx_connection_t *c, ngx_chain_t *in);
27 typedef ssize_t (*ngx_send_pt)(ngx_connection_t *c, u_char *buf, size_t size);
28 typedef ngx_chain_t *(*ngx_send_chain_pt)(ngx_connection_t *c, ngx_chain_t *in,
29 off_t limit);
25 30
26 typedef struct { 31 typedef struct {
27 ssize_t (*recv)(ngx_connection_t *c, u_char *buf, size_t size); 32 ngx_recv_pt recv;
28 ssize_t (*recv_chain)(ngx_connection_t *c, ngx_chain_t *in); 33 ngx_recv_chain_pt recv_chain;
29 ssize_t (*send)(ngx_connection_t *c, u_char *buf, size_t size); 34 ngx_send_pt send;
30 ngx_chain_t *(*send_chain)(ngx_connection_t *c, ngx_chain_t *in, 35 ngx_send_chain_pt send_chain;
31 off_t limit);
32 int flags; 36 int flags;
33 } ngx_os_io_t; 37 } ngx_os_io_t;
34 38
35 39
36 void ngx_debug_init(); 40 void ngx_debug_init();