On Fri, Sep 17, 2010 at 7:50 AM, steve donovan <steve.j.dono...@gmail.com> wrote: > Another option is to wrap the socket handle in a light userdata, which > can be passed to lanes.
There is of course another thing that must be done before this all works reliably. In addition to the getfd() method, one also needs a releasefd() method which would set tcp->sock to SOCKET_INVALID. Otherwise, __gc can close the socket prematurely. steve d. _______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/