LuaSocket
IPv4 Sockets support for the Lua language

home · download · what is · introduction · functions · modules · index


Download

The library can be downloaded in source code from the following links:

luasocket-1.4.tar.gz
luasocket-1.4.zip

Besides the full C and Lua source code for the library, the distribution contains several examples, this user's manual and the test procedures. I am also providing a Windows binary for those that want to give LuaSocket a quick try:

luasocket-1.4.exe

This binary has been compiled with the _DEBUG option, and should be able to run the automatic testing procedures.

What is LuaSocket?

LuaSocket is a Lua extension library that provides support for the TCP and UDP transport layers within the Lua language. Network support has been implemented so that it is both efficient and simple to use.

LuaSocket can be used by any Lua application desiring access to network communication on the Internet, once it has been properly linked with and initialized by the interpreter running the Lua application. The code has been tested and runs well on several Windows and Unix platforms.

The library also provides extra Lua modules implementing support for the SMTP (sending e-mails), HTTP (www access) and FTP (uploading and downloading files) protocols.

The library is available under the same terms and conditions as the Lua language, that is, it can be used at no cost for both academic and commercial purposes.

Copyright © 1999-2001 TeCGraf, PUC-Rio. All rights reserved.
Author: Diego Nehab

Old Versions

All previous versions of the LuaSocket library can be downloaded here. Although these versions are no longer supported, they are still available for those that have compatibility issues.

Current Version

LuaSocket version 1.4 is now available for download! It is compatible with Lua 4.0 and has been tested on Windows 98, Windows 2000, Linux, AIX, SunOS and IRIX.

What's New

Most of the changes for 1.4 have been made on the Lua modules, which have been almost completely rewritten. There have been some API changes that made the interface simpler and more consistent. Here are some of the changes that made it into version 1.4:

Incompatibilities with previous versions

TCP and UDP code should keep working without change. HTTP, FTP and SMTP code should be modified to use the new improved API.


home · download · what is · introduction · functions · modules · index

Created with Vim and Best Viewed on Any Browser
Last modified by Diego Nehab on
Thu Sep 27 16:18:27 EST 2001