diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-01 06:09:29 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-01 06:09:29 +0000 |
commit | 63807d647624df155a81a2b323f370e2c36192f6 (patch) | |
tree | 28d53540d166cc01eb0a3302e4f0dc5d2cc6c809 /src/buffer.h | |
parent | 2562738e2db9d7654c48c10247e683215e09b4a5 (diff) | |
download | luasocket-63807d647624df155a81a2b323f370e2c36192f6.tar.gz luasocket-63807d647624df155a81a2b323f370e2c36192f6.tar.bz2 luasocket-63807d647624df155a81a2b323f370e2c36192f6.zip |
Added getstats.
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 */ |