diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-06-09 18:23:40 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-06-09 18:23:40 +0000 |
commit | 58bdb658aaa1c30a8f3bed46eef880d308fae582 (patch) | |
tree | 5bf880c715daff79c1a2062f2f3ae8336858c83f /src/io.h | |
parent | b2724ad2d1cc3768a04270ed3f8014ec65ad133b (diff) | |
download | luasocket-58bdb658aaa1c30a8f3bed46eef880d308fae582.tar.gz luasocket-58bdb658aaa1c30a8f3bed46eef880d308fae582.tar.bz2 luasocket-58bdb658aaa1c30a8f3bed46eef880d308fae582.zip |
Select re-implemented in a nicer way.
Few changes in internal class and group registration.
Lua modules are compiled and built into library.
Dynamic library tested in Linux and Mac OS X.
Diffstat (limited to 'src/io.h')
-rw-r--r-- | src/io.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,7 +1,17 @@ | |||
1 | #ifndef IO_H | 1 | #ifndef IO_H |
2 | #define IO_H | 2 | #define IO_H |
3 | 3 | ||
4 | #include "error.h" | 4 | #include <stdio.h> |
5 | |||
6 | /* IO error codes */ | ||
7 | enum { | ||
8 | IO_DONE, /* operation completed successfully */ | ||
9 | IO_TIMEOUT, /* operation timed out */ | ||
10 | IO_CLOSED, /* the connection has been closed */ | ||
11 | IO_ERROR, /* something wrong... */ | ||
12 | IO_REFUSED, /* transfer has been refused */ | ||
13 | IO_LIMITED /* maximum number of bytes reached */ | ||
14 | }; | ||
5 | 15 | ||
6 | /* interface to send function */ | 16 | /* interface to send function */ |
7 | typedef int (*p_send) ( | 17 | typedef int (*p_send) ( |