aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-07-01 06:09:29 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-07-01 06:09:29 +0000
commit63807d647624df155a81a2b323f370e2c36192f6 (patch)
tree28d53540d166cc01eb0a3302e4f0dc5d2cc6c809 /src/buffer.h
parent2562738e2db9d7654c48c10247e683215e09b4a5 (diff)
downloadluasocket-63807d647624df155a81a2b323f370e2c36192f6.tar.gz
luasocket-63807d647624df155a81a2b323f370e2c36192f6.tar.bz2
luasocket-63807d647624df155a81a2b323f370e2c36192f6.zip
Added getstats.
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 */