From 4e5ad6d5ee9e72ddf6550a6795c18039b265e501 Mon Sep 17 00:00:00 2001
From: Diego Nehab
The core support has been implemented so that it is both efficient and
-simple to use. The core can be used by any Lua application once it has
-been properly initialized by the interpreter running the
-Lua application. The code has been tested and runs well on several Windows
-and Unix platforms.
-
-The most used modules implement the +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 e -functionality covered by the protocols. +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 @@ -107,12 +105,12 @@ The library can be downloaded in source code from the following links:
Besides the full C and Lua source code for the library, the distribution -contains several examples, this user's manual and the test procedures. +contains several examples, this user's manual and basic test procedures.
I am also providing PC Win32 binaries for those that want to give -LuaSocket a quick try: +LuaSocket a try (Those on Unix or Mac OS X can just type make):
@@ -126,12 +124,12 @@ The quick and dirty way to use these binaries is to unpack everything into a directory, say c:\luasocket (include all Lua files from the LuaSocket distrbitution in the same directory too!). Then set LUA_INIT to load the compat-5.1.lua and set -LUA_PATH and LUA_CPATH to look for files in that +LUA_PATH and LUA_CPATH to look for files in the current directory:-c:\luasocket\> set LUA_INIT=@compat-5.1.lua +c:\luasocket\> set LUA_INIT=@c:\luasocket\compat-5.1.lua c:\luasocket\> set LUA_CPATH=?.dll c:\luasocket\> set LUA_PATH=?.lua@@ -147,12 +145,12 @@ c:\luasocket\> lua Lua 5.0.2 Copyright (C) 1994-2004 Tecgraf, PUC-Rio > http = require"http" > print(http.request"http://www.tecgraf.puc-rio.br/luasocket/") ---> this gets dumped to terminal +--> the source to this webpage gets dumped to terminal -Take a look at the installation section of -the manual to find out how to properly install the library after you are -done playing with it.
+When you are done playing, take a look at the +installation section of the manual to find out +how to properly install the library.
@@ -175,7 +173,7 @@ has been helping a lot too! Thanks to you all!The big change for the 2.0 (beta3) release was the adoption of the Lua 5.1 -package proposal. There were several bug fixes too (a beta is a +package proposal. Naturally, there were a few bug fixes (a beta is a beta, is a beta).
@@ -195,7 +193,7 @@ beta, is a beta).Fixed udp:sendto to call sock_sendto instead of sock_send; close wasn't returning 1! - socket.gettime returns time since Unix Epoch 1/1/1970 (UTC) + socket.gettime returns time since Unix Epoch 1/1/1970 (UTC); socket.sleep is robust to interrupts; socket.select wasn't calling tm_markstart; http.PROXY wasn't working. @@ -206,8 +204,8 @@ beta, is a beta). Incompatibilities with previous versions
-
-- cgit v1.2.3-55-g6feb- Namespaces are hierarchical again. This means that whoever called -require("url") should update their code to +
- Namespaces are hierarchical again. This means that whoever used to +call require("url") should update their code to require("socket.url").