aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 4b7563f..3ea2648 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -27,6 +27,8 @@
27 27
28/* buffer control structure */ 28/* buffer control structure */
29typedef struct t_buf_ { 29typedef struct t_buf_ {
30 double birthday; /* throttle support info: creation time, */
31 int sent, received; /* bytes sent, and bytes received */
30 p_io io; /* IO driver used for this buffer */ 32 p_io io; /* IO driver used for this buffer */
31 p_tm tm; /* timeout management for this buffer */ 33 p_tm tm; /* timeout management for this buffer */
32 size_t first, last; /* index of first and last bytes of stored data */ 34 size_t first, last; /* index of first and last bytes of stored data */
@@ -38,6 +40,7 @@ int buf_open(lua_State *L);
38void buf_init(p_buf buf, p_io io, p_tm tm); 40void buf_init(p_buf buf, p_io io, p_tm tm);
39int buf_meth_send(lua_State *L, p_buf buf); 41int buf_meth_send(lua_State *L, p_buf buf);
40int buf_meth_receive(lua_State *L, p_buf buf); 42int buf_meth_receive(lua_State *L, p_buf buf);
43int buf_meth_getstats(lua_State *L, p_buf buf);
41int buf_isempty(p_buf buf); 44int buf_isempty(p_buf buf);
42 45
43#endif /* BUF_H */ 46#endif /* BUF_H */