|
Lua Code
|
LUA is a small scripting language designed to be embedded inside your application to provide extensibility. It is also possible to extend the Lua scripting language itself via the use of extensions written in C. This page describes such an extension which provides a small number of basic networking and filesystem primitives. By installing this extension you will be able to write networking applications in the Lua! The code is made up of several distinct parts:
You can download the source of the extension and the sample webserver from the following link:
To compile this code you'll need the LUA 5.0 development headers and libraries installed upon your system. Compilation has only been tested upon x86, running Debian's Sarge distribution. If you manage to compile the code upon another Distribution, or version, then please let me know. Compilation should be as simple as running "make", install the library with "make install" - to remove the library you can run "make uninstall". To start the sample webserver listening upon port 4444 run "make test" or "lua httpd.lua". |
|
[ Sitemap | Contact Me ]
|