diff options
Diffstat (limited to 'src/buffer.h')
-rw-r--r-- | src/buffer.h | 3 |
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 */ |
29 | typedef struct t_buf_ { | 29 | typedef 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); | |||
38 | void buf_init(p_buf buf, p_io io, p_tm tm); | 40 | void buf_init(p_buf buf, p_io io, p_tm tm); |
39 | int buf_meth_send(lua_State *L, p_buf buf); | 41 | int buf_meth_send(lua_State *L, p_buf buf); |
40 | int buf_meth_receive(lua_State *L, p_buf buf); | 42 | int buf_meth_receive(lua_State *L, p_buf buf); |
43 | int buf_meth_getstats(lua_State *L, p_buf buf); | ||
41 | int buf_isempty(p_buf buf); | 44 | int buf_isempty(p_buf buf); |
42 | 45 | ||
43 | #endif /* BUF_H */ | 46 | #endif /* BUF_H */ |