lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 01.07.2015 01:05, Jorge wrote:
Hi everyone,

I'm trying to use luasocket's select() to read from files, under Linux.
As far as can see, it is possible now trough judicious use of setfd()
(and dirty()?). But I do not see where i can get that fd from (io.* uses
a opaque thing for files).

luaposix has a function fileno(file) wich does this.

- Bernd