lua-users home
lua-l archive

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


On 5/31/05, Diego Nehab <diego@tecgraf.puc-rio.br> wrote:
> 
> Why isn't this "just" placing it in package.preload? You don't need to
> use lua_register. You can use lua_pushcfunction and then lua_settable
> from C.  No need to create the global "open_lsocket" or change Lua code.

Hi Diego,

I'm building a static lua executable for an embedded application.  I'm
including luasocket along with it.  Can you tell me where I would add
in this lua_pushcfunction, lua_settable code?  And what exactly should
the code look like? (I haven't done any work with the Lua API yet.)

Thanks very much for LuaSocket.  It is very effective.

Regards,

Bill Trenker