lua-users home
lua-l archive

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


On Thu, Apr 29, 2004 at 07:23:27PM +0200, Maxime Petazzoni wrote:
> >I think loadlib() is what you are searching for...
> 
> You must compile the Lua interpretor with the libluasocket if you want 
> to use this binary module. One more time, that's not what I call easy :)
> But if you can give me an exemple of socket usage in Lua, without 
> touching to your Lua interpretor, go ahead, that's all I'm waiting for !

if you compiled the lua interpreter with the loadlib support(see config
line LOADLIB= -DUSE_DLOPEN=1) you should be able to load a .so (or .dll
on win32) on the fly.

read etc/README in the luasocket package... there is an example of
loadlib usage...

-- 
Enrico Tassi