Initial version.

This commit is contained in:
Igor Sysoev
2017-01-17 20:00:00 +03:00
commit 16cbf3c076
235 changed files with 56359 additions and 0 deletions

24
src/nxt_recvbuf.h Normal file
View File

@@ -0,0 +1,24 @@
/*
* Copyright (C) Igor Sysoev
* Copyright (C) NGINX, Inc.
*/
#ifndef _NXT_RECVBUF_H_INCLUDED_
#define _NXT_RECVBUF_H_INCLUDED_
typedef struct {
nxt_buf_t *buf;
nxt_iobuf_t *iobuf;
int32_t nmax;
size_t size;
} nxt_recvbuf_coalesce_t;
nxt_uint_t nxt_recvbuf_mem_coalesce(nxt_recvbuf_coalesce_t *rb);
void nxt_recvbuf_update(nxt_buf_t *b, size_t sent);
#endif /* _NXT_RECVBUF_H_INCLUDED_ */