/usr/share/doc/lua-socket
NameSizeModeActions
dns.html47100644editdlrm
ftp.html95650644editdlrm
http.html114490644editdlrm
index.html75690644editdlrm
installation.html38830644editdlrm
introduction.html124330644editdlrm
ltn12.html109360644editdlrm
lua05.ppt3041280644editdlrm
luasocket.png117320644editdlrm
mime.html141600644editdlrm
README2370644editdlrm
reference.css9500644editdlrm
reference.html75830644editdlrm
smtp.html145030644editdlrm
socket.html138660644editdlrm
tcp.html214580644editdlrm
udp.html169210644editdlrm
url.html84300644editdlrm
Edit: /usr/share/doc/lua-socket/index.html (7569B)
LuaSocket: Network support for the Lua language

LuaSocket
Network support for the Lua language

home · download · installation · introduction · reference


What is LuaSocket?

LuaSocket is a Lua extension library that is composed by two parts: a C core that provides support for the TCP and UDP transport layers, and a set of Lua modules that add support for functionality commonly needed by applications that deal with the Internet.

The core support has been implemented so that it is both efficient and simple to use. It is available to any Lua application once it has been properly initialized by the interpreter in use. The code has been tested and runs well on several Windows and UNIX platforms.

Among the support modules, the most commonly used implement the SMTP (sending e-mails), HTTP (WWW access) and FTP (uploading and downloading files) client protocols. These provide a very natural and generic interface to the functionality defined by each protocol. In addition, you will find that the MIME (common encodings), URL (anything you could possible want to do with one) and LTN12 (filters, sinks, sources and pumps) modules can be very handy.

The library is available under the same terms and conditions as the Lua language, the MIT license. The idea is that if you can use Lua in a project, you should also be able to use LuaSocket.

Copyright © 1999-2013 Diego Nehab. All rights reserved.
Author: Diego Nehab

Download

LuaSocket version 3.0-rc1 is now available for download! It is compatible with Lua 5.1 and 5.2, and has been tested on Windows XP, Linux, and Mac OS X. Chances are it works well on most UNIX distributions and Windows flavors.

The current version of the library can be found at the LuaSocket project page on GitHub. Besides the full C and Lua source code for the library, the distribution contains several examples, this user's manual and basic test procedures.

Take a look at the installation section of the manual to find out how to properly install the library.

Special thanks

This marks the first release of LuaSocket that wholeheartedly embraces the open-source development philosophy. After a long hiatus, Matthew Wild finally convinced me it was time for a release including IPv6 and Lua 5.2 support. It was more work than we anticipated. Special thanks to Sam Roberts, Florian Zeitz, and Paul Aurich, Liam Devine, Alexey Melnichuk, and everybody else that has helped bring this library back to life.

What's New

Main changes for LuaSocket 3.0-rc1 are IPv6 support and Lua 5.2 compatibility.

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.