From 1c487e4be8de182e2323d7a1d6126859e3172fe9 Mon Sep 17 00:00:00 2001
From: Diego Nehab
-Copyright © 2004-2006 Diego Nehab. All rights reserved.
+Copyright © 2004-2007 Diego Nehab. All rights reserved.
Author: Diego Nehab
-LuaSocket version 2.0.1 is now available for download! It is -compatible with Lua 5.0 and Lua 5.1, and has +LuaSocket version 2.0.2 is now available for download! It is +compatible with Lua 5.1, and has been tested on Windows XP, Linux, and Mac OS X. Chances -are it works well on most UNIX systems. +are it works well on most UNIX distributions and Windows flavours.
@@ -108,55 +108,11 @@ available from LuaForge. These are compatible with the also available from LuaForge.
--If you are using Lua 5.0, and want to give LuaSocket a quick -try, download the stand-alone archive and unpack everything into -a directory, say c:\luasocket. Then set LUA_INIT to load -the compat-5.1.lua and set LUA_PATH and -LUA_CPATH to look for files in the current directory: +
Take a look at the installation section of the +manual to find out how to properly install the library.
--c:\luasocket\> set LUA_INIT=@c:\luasocket\compat-5.1.lua -c:\luasocket\> set LUA_CPATH=?.dll -c:\luasocket\> set LUA_PATH=?.lua -- -
-From that directory, you can then run the interpreter and it should find all -files it needs. To download this manual page from the Internet, for example, -do the following: -
- --c:\luasocket\> lua50 -Lua 5.0.2 Copyright (C) 1994-2004 Tecgraf, PUC-Rio -> http = require"socket.http" -> print(http.request"http://www.cs.princeton.edu/~diego/professional/luasocket/") ---> the source to this web page gets dumped to terminal -- -
-If you are using Lua 5.1, you shouldn't use -compat-5.1.lua. Just unpack the standalone -directory, set LUA_CPATH and LUA_PATH, and -you should be ready to run: -
- --c:\luasocket\> set LUA_CPATH=?.dll -c:\luasocket\> set LUA_PATH=?.lua -c:\luasocket\> lua5.1 -Lua 5.1 Copyright (C) 1994-2006 Lua.org, PUC-Rio -> http = require"socket.http" -> print(http.request"http://www.cs.princeton.edu/~diego/professional/luasocket/" ---> the source to this web page gets dumped to terminal -- -
When you are done playing, take a look at the -installation section of the manual to find out -how to properly install the library.
--This is just a bug-fix/update release. +2.0.2 is just a bug-fix/update release. +
+ ++2.0.1 is just a bug-fix/update release.
LuaSocket 2.0.1 uses the new package system for Lua 5.1. +
LuaSocket 2.0.2 uses the new package system for Lua 5.1. All Lua library developers are encouraged to update their libraries so that all libraries can coexist peacefully and users can benefit from the standardization and flexibility of the standard. @@ -122,17 +122,17 @@ it should be easy to use LuaSocket. Just fire the interpreter and use the require function to gain access to whatever module you need:
-Lua 5.0.2 Copyright (C) 1994-2004 Tecgraf, PUC-Rio +Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio > socket = require("socket") > print(socket._VERSION) ---> LuaSocket 2.0.1 +--> LuaSocket 2.0.2
Each module loads their dependencies automatically, so you only need to load the modules you directly depend upon:
-Lua 5.0.2 Copyright (C) 1994-2004 Tecgraf, PUC-Rio +Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio > http = require("socket.http") > print(http.request("http://www.cs.princeton.edu/~diego/professional/luasocket")) --> homepage gets dumped to terminal