On Fri, Sep 17, 2010 at 1:21 AM, Thomas Harning Jr. <harni...@gmail.com> wrote:
> One thing you could do that would work safely is to make a Luasocket
> socket instances a 'deep userdata' object.
> These can be passed between lanes/threads without
> unwrapping/rewrapping sockets.

That would be the official solution, of course. Otherwise there is the
assumption that socket handles fit into a Lua number type, which is
_probably_ true. (On ARM processors without a floating-point processor
the number type would be a 32-bit integer)

Another option is to wrap the socket handle in a light userdata, which
can be passed to lanes.

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/

Reply via email to