aboutsummaryrefslogtreecommitdiff
path: root/src/io.h
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-01-18 00:04:20 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-01-18 00:04:20 +0000
commitc8d58798f0b0c789df5c566494112f81ac302432 (patch)
tree40c52eab0a4bf92636ebe13027d165f0b8452bb1 /src/io.h
parent02ef4e7daae6bef629dcb568052755fb85ed2efc (diff)
downloadluasocket-c8d58798f0b0c789df5c566494112f81ac302432.tar.gz
luasocket-c8d58798f0b0c789df5c566494112f81ac302432.tar.bz2
luasocket-c8d58798f0b0c789df5c566494112f81ac302432.zip
Trying to get connect-with-timeout to work. Darwin works...
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