Could you add a way to use normal lua file descriptors? See: http://www.lua.org/source/5.1/liolib.c.html#getiofile For usabilitiy; it might be nice if there was a tolibevio(x) funtion that would take a lua file object, socket object or other io types and convert them to an io object for libev.