aboutsummaryrefslogtreecommitdiff
path: root/src/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/io.h')
-rw-r--r--src/io.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/io.h b/src/io.h
index 33675d8..495bdc6 100644
--- a/src/io.h
+++ b/src/io.h
@@ -20,12 +20,11 @@
20/* IO error codes */ 20/* IO error codes */
21enum { 21enum {
22 IO_DONE, /* operation completed successfully */ 22 IO_DONE, /* operation completed successfully */
23 IO_RETRY, /* please try again */
23 IO_TIMEOUT, /* operation timed out */ 24 IO_TIMEOUT, /* operation timed out */
24 IO_CLOSED, /* the connection has been closed */ 25 IO_CLOSED, /* the connection has been closed */
25 IO_ERROR, /* something wrong... */
26 IO_REFUSED, /* transfer has been refused */ 26 IO_REFUSED, /* transfer has been refused */
27 IO_RETRY, /* please try again */ 27 IO_ERROR /* something else wrong... */
28 IO_LIMITED /* maximum number of bytes reached */
29}; 28};
30 29
31/* interface to send function */ 30/* interface to send function */
@@ -54,6 +53,7 @@ typedef struct t_io_ {
54} t_io; 53} t_io;
55typedef t_io *p_io; 54typedef t_io *p_io;
56 55
56const char *io_strerror(int code);
57void io_pusherror(lua_State *L, int code); 57void io_pusherror(lua_State *L, int code);
58void io_init(p_io io, p_send send, p_recv recv, void *ctx); 58void io_init(p_io io, p_send send, p_recv recv, void *ctx);
59 59