[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: Lua socket porting
From:       Diego Nehab <diego () tecgraf ! puc-rio ! br>
Date:       2008-10-27 20:41:36
Message-ID: alpine.GSO.1.10.0810271639080.12154 () rayban ! cs ! princeton ! edu
[Download RAW message or body]

Hi,

> I am in the process of porting lua sockets into our VxWork
> environment.  We are already using Lua version 5.1.2 and I am trying
> to port the LuaSocket 2.0.2.
>
> I observed the LuaSocket's src directory holding some lua files like
> (socket.lua, httpd.lua ..etc).  Any body please let me know the
> purpose of these files?  Are they required by the lua interpreter to
> work with lua sockets?

The .lua files should require no modifications when ported. Do you have
the Lua module system working in VxWork already? Usually, when you
invoke require'socket', it is the socket.lua file that is loaded. This,
in turn, loads the C part of the library. Same goes for require'mime'
and mime.lua. All other .lua modules are optional, and implement
protocols which you may or may not use.

Regards,
Diego
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic