diff options
Diffstat (limited to 'src/io.h')
-rw-r--r-- | src/io.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -20,12 +20,11 @@ | |||
20 | /* IO error codes */ | 20 | /* IO error codes */ |
21 | enum { | 21 | enum { |
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; |
55 | typedef t_io *p_io; | 54 | typedef t_io *p_io; |
56 | 55 | ||
56 | const char *io_strerror(int code); | ||
57 | void io_pusherror(lua_State *L, int code); | 57 | void io_pusherror(lua_State *L, int code); |
58 | void io_init(p_io io, p_send send, p_recv recv, void *ctx); | 58 | void io_init(p_io io, p_send send, p_recv recv, void *ctx); |
59 | 59 | ||