xref: /unit/src/nxt_recvbuf.h (revision 0:a63ceefd6ab0)
1 
2 /*
3  * Copyright (C) Igor Sysoev
4  * Copyright (C) NGINX, Inc.
5  */
6 
7 #ifndef _NXT_RECVBUF_H_INCLUDED_
8 #define _NXT_RECVBUF_H_INCLUDED_
9 
10 
11 typedef struct {
12     nxt_buf_t    *buf;
13     nxt_iobuf_t  *iobuf;
14 
15     int32_t      nmax;
16     size_t       size;
17 } nxt_recvbuf_coalesce_t;
18 
19 
20 nxt_uint_t nxt_recvbuf_mem_coalesce(nxt_recvbuf_coalesce_t *rb);
21 void nxt_recvbuf_update(nxt_buf_t *b, size_t sent);
22 
23 
24 #endif /* _NXT_RECVBUF_H_INCLUDED_ */
25