aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_os.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-07-15 16:35:51 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-07-15 16:35:51 +0000
commit1c3567ecc81a9f07f3c3d53912114bc5bd5daffa (patch)
treeba0b57b32bb1232af3fad0ff38375df9e498ec66 /src/os/unix/ngx_os.h
parent4aa888820d3f13a225ee6bdd596305ea3b4db6f4 (diff)
downloadnginx-1c3567ecc81a9f07f3c3d53912114bc5bd5daffa.tar.gz
nginx-1c3567ecc81a9f07f3c3d53912114bc5bd5daffa.zip
nginx-0.0.7-2004-07-15-20:35:51 import
Diffstat (limited to 'src/os/unix/ngx_os.h')
-rw-r--r--src/os/unix/ngx_os.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/os/unix/ngx_os.h b/src/os/unix/ngx_os.h
index c4da5cdbd..385fac0a2 100644
--- a/src/os/unix/ngx_os.h
+++ b/src/os/unix/ngx_os.h
@@ -22,13 +22,17 @@
#endif
+typedef ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size);
+typedef ssize_t (*ngx_recv_chain_pt)(ngx_connection_t *c, ngx_chain_t *in);
+typedef ssize_t (*ngx_send_pt)(ngx_connection_t *c, u_char *buf, size_t size);
+typedef ngx_chain_t *(*ngx_send_chain_pt)(ngx_connection_t *c, ngx_chain_t *in,
+ off_t limit);
typedef struct {
- ssize_t (*recv)(ngx_connection_t *c, u_char *buf, size_t size);
- ssize_t (*recv_chain)(ngx_connection_t *c, ngx_chain_t *in);
- ssize_t (*send)(ngx_connection_t *c, u_char *buf, size_t size);
- ngx_chain_t *(*send_chain)(ngx_connection_t *c, ngx_chain_t *in,
- off_t limit);
+ ngx_recv_pt recv;
+ ngx_recv_chain_pt recv_chain;
+ ngx_send_pt send;
+ ngx_send_chain_pt send_chain;
int flags;
} ngx_os_io_t;