2003-06-26 20:47:49 +02:00
|
|
|
#ifndef SELECT_H
|
|
|
|
#define SELECT_H
|
2003-03-28 22:08:50 +01:00
|
|
|
/*=========================================================================*\
|
|
|
|
* Select implementation
|
2003-06-26 20:47:49 +02:00
|
|
|
* LuaSocket toolkit
|
|
|
|
*
|
|
|
|
* To make the code as simple as possible, the select function is
|
|
|
|
* implemented int Lua, with a few helper functions written in C.
|
|
|
|
*
|
2004-05-30 23:36:22 +02:00
|
|
|
* Each object that can be passed to the select function has to export two
|
|
|
|
* methods: fd() and dirty(). Fd returns the descriptor to be passed to the
|
|
|
|
* select function. Dirty() should return true if there is data ready for
|
|
|
|
* reading (required for buffered input).
|
2003-06-26 20:47:49 +02:00
|
|
|
*
|
2003-03-28 22:08:50 +01:00
|
|
|
* RCS ID: $Id$
|
|
|
|
\*=========================================================================*/
|
2002-07-03 21:06:54 +02:00
|
|
|
|
2004-02-04 15:29:11 +01:00
|
|
|
int select_open(lua_State *L);
|
2002-07-03 21:06:54 +02:00
|
|
|
|
2003-06-09 20:23:40 +02:00
|
|
|
#endif /* SELECT_H */
|