diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-06-26 18:47:49 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-06-26 18:47:49 +0000 |
| commit | 71f6bb60bf2b7457091c7106190f92ab7e51f7c6 (patch) | |
| tree | 8ad3668667bd3da3c34f7ff7ae0a9a7a4daa4679 /src/select.h | |
| parent | f330540576031528f0daac231c61d4dd06e8ba1e (diff) | |
| download | luasocket-71f6bb60bf2b7457091c7106190f92ab7e51f7c6.tar.gz luasocket-71f6bb60bf2b7457091c7106190f92ab7e51f7c6.tar.bz2 luasocket-71f6bb60bf2b7457091c7106190f92ab7e51f7c6.zip | |
Finished implementation of LuaSocket 2.0 alpha on Linux.
Some testing still needed.
Diffstat (limited to 'src/select.h')
| -rw-r--r-- | src/select.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/select.h b/src/select.h index 9521fae..0e1eeb4 100644 --- a/src/select.h +++ b/src/select.h | |||
| @@ -1,9 +1,19 @@ | |||
| 1 | #ifndef SELECT_H | ||
| 2 | #define SELECT_H | ||
| 1 | /*=========================================================================*\ | 3 | /*=========================================================================*\ |
| 2 | * Select implementation | 4 | * Select implementation |
| 5 | * LuaSocket toolkit | ||
| 6 | * | ||
| 7 | * To make the code as simple as possible, the select function is | ||
| 8 | * implemented int Lua, with a few helper functions written in C. | ||
| 9 | * | ||
| 10 | * Each object that can be passed to the select function has to be in the | ||
| 11 | * group select{able} and export two methods: fd() and dirty(). Fd returns | ||
| 12 | * the descriptor to be passed to the select function. Dirty() should return | ||
| 13 | * true if there is data ready for reading (required for buffered input). | ||
| 14 | * | ||
| 3 | * RCS ID: $Id$ | 15 | * RCS ID: $Id$ |
| 4 | \*=========================================================================*/ | 16 | \*=========================================================================*/ |
| 5 | #ifndef SELECT_H | ||
| 6 | #define SELECT_H | ||
| 7 | 17 | ||
| 8 | void select_open(lua_State *L); | 18 | void select_open(lua_State *L); |
| 9 | 19 | ||
