aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2003-03-28 23:29:45 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2003-03-28 23:29:45 +0000
commitc1ef3e7103cc652d2004ef1ddc9409b946207f33 (patch)
tree56462562cf1769ccf079c2f5265e05db3a628a83
parent4755ad727e36f2c3ad644718a2d477fffa9b1d23 (diff)
downloadluasocket-c1ef3e7103cc652d2004ef1ddc9409b946207f33.tar.gz
luasocket-c1ef3e7103cc652d2004ef1ddc9409b946207f33.tar.bz2
luasocket-c1ef3e7103cc652d2004ef1ddc9409b946207f33.zip
Released luasocket-1.5-work!
-rw-r--r--README50
-rw-r--r--makefile.dist37
-rw-r--r--src/luasocket.c2
-rw-r--r--src/select.c2
4 files changed, 33 insertions, 58 deletions
diff --git a/README b/README
index c30799c..091ce6f 100644
--- a/README
+++ b/README
@@ -1,38 +1,12 @@
1This directory contains the implementation of the protocols FTP, HTTP 1This release is work in progress. It has been tested on WinXP, Mac OS X,
2and SMTP, the URL parsing and composition module and the Concat and Code 2SunOS and Linux. The most important change is a major rewrite of the C code
3auxiliary modules. The files provided are: 3that attempts to make the library extensible. Also, all functions were
4 4moved to the 'socket' namespace. A few changes are expected for the final
5 http.lua -- HTTP protocol implementation 5version, mostly in order to make the API more uniform.
6 6
7The module http.lua provides general HTTP client support. The 7In this version, all Lua code has been built into the binary. For that, you
8implementation conforms to the HTTP/1.1 standard, RFC 2068. 8will need a working versions of luac and bin2c, both available with your
9 9Lua distribution. Check makefile for details.
10 smtp.lua -- SMTP protocol implementation 10
11 11Have fun,
12The module smtp.lua provides functionality to send e-mail messages to a 12Diego Nehab.
13SMTP mail server. The implementation conforms to RFC 821.
14
15 ftp.lua -- FTP protocol implementation
16
17The module ftp.lua provides functions to download and upload files from
18and to FTP servers. The implementation conforms to RFC 959.
19
20 url.lua -- URL parsing and composition
21
22The module url.lua provides routines to split a URL into its components
23and to compose a base URL and relative URL into an absolute URL.
24
25 code.lua -- some coding conversion routines
26
27The code.lua module provides base64, hexa and escaped encoding and
28decoding. The module is used for the HTTP Basic Authentication Scheme,
29and URL protection, conforming to RFC 2045.
30
31 concat.lua -- fast concatenation library
32
33The module concat.lua implements, completely in Lua, a set of functions
34that greatly improves the performance of repeated concatenations of Lua
35strings. The algorithm was inventd by Roberto Ierusalimschy.
36
37These modules are part of the LuaSocket library and are supported.
38Please send any comments to diego@tecgraf.puc-rio.br.
diff --git a/makefile.dist b/makefile.dist
index 2154eb9..90ef7c2 100644
--- a/makefile.dist
+++ b/makefile.dist
@@ -2,31 +2,32 @@
2# Distribution makefile 2# Distribution makefile
3#-------------------------------------------------------------------------- 3#--------------------------------------------------------------------------
4 4
5DIST = luasocket-1.4 5DIST = luasocket-1.5-work
6 6
7SRC = ~diego/tec/luasocket 7LUA = concat.lua code.lua url.lua http.lua smtp.lua ftp.lua lsselect.lua \
8 cl-compat.lua
9
10TESTS = testclnt.lua testsrvr.lua testcmd.lua codetest.lua \
11 urltest.lua concattest.lua
12
13EXAMPLES = check-links.lua daytimeclnt.lua dict.lua echoclnt.lua \
14 echosrvr.lua get.lua listener.lua talker.lua tinyirc.lua tftpclnt.lua
8 15
9dist: 16dist:
10 mkdir -p $(DIST)/lua
11 mkdir -p $(DIST)/examples 17 mkdir -p $(DIST)/examples
12 mkdir -p $(DIST)/html 18 mkdir -p $(DIST)/tests
13 mkdir -p $(DIST)/test
14 cp -vf *.c $(DIST) 19 cp -vf *.c $(DIST)
15 cp -vf *.h $(DIST) 20 cp -vf *.h $(DIST)
21 cp -vf $(LUA) $(DIST)
16 cp -vf makefile $(DIST) 22 cp -vf makefile $(DIST)
17 cp -vf README $(DIST) 23 cp -vf README $(DIST)
18 cp -vf lua/*.lua $(DIST)/lua 24 cp -vf $(EXAMPLES) $(DIST)/examples
19 cp -vf lua/README $(DIST)/lua 25 cp -vf README.examples $(DIST)/examples/README
20 cp -vf examples/*.lua $(DIST)/examples 26 cp -vf $(TESTS) $(DIST)/tests
21 cp -vf examples/README $(DIST)/examples 27 cp -vf README.tests $(DIST)/tests/README
22 cp -vf html/*.html $(DIST)/html
23 cp -vf html/*.png $(DIST)/html
24 cp -vf test/testclnt.lua $(DIST)/test
25 cp -vf test/testsrvr.lua $(DIST)/test
26 cp -vf test/testcmd.lua $(DIST)/test
27 cp -vf test/codetest.lua $(DIST)/test
28 cp -vf test/concattest.lua $(DIST)/test
29 cp -vf test/urltest.lua $(DIST)/test
30 cp -vf test/README $(DIST)/test
31 tar -zcvf $(DIST).tar.gz $(DIST) 28 tar -zcvf $(DIST).tar.gz $(DIST)
32 zip -r $(DIST).zip $(DIST) 29 zip -r $(DIST).zip $(DIST)
30
31
32clean:
33 \rm -rf $(DIST) $(DIST).tar.gz $(DIST).zip
diff --git a/src/luasocket.c b/src/luasocket.c
index 358b25e..bcc705f 100644
--- a/src/luasocket.c
+++ b/src/luasocket.c
@@ -56,7 +56,7 @@ LUASOCKET_API int lua_socketlibopen(lua_State *L)
56 buf_open(L); 56 buf_open(L);
57 tcps_open(L); 57 tcps_open(L);
58 udp_open(L); 58 udp_open(L);
59#if LUASOCKET_DEBUG 59#ifdef LUASOCKET_DOFILE
60 lua_dofile(L, "concat.lua"); 60 lua_dofile(L, "concat.lua");
61 lua_dofile(L, "code.lua"); 61 lua_dofile(L, "code.lua");
62 lua_dofile(L, "url.lua"); 62 lua_dofile(L, "url.lua");
diff --git a/src/select.c b/src/select.c
index 0c14ba6..9f56b47 100644
--- a/src/select.c
+++ b/src/select.c
@@ -41,7 +41,7 @@ void select_open(lua_State *L)
41{ 41{
42 /* push select auxiliar lua function and register 42 /* push select auxiliar lua function and register
43 * select_lua_select with it as an upvalue */ 43 * select_lua_select with it as an upvalue */
44#ifdef LUASOCKET_DEBUG 44#ifdef LUASOCKET_DOFILE
45 lua_dofile(L, "lsselect.lua"); 45 lua_dofile(L, "lsselect.lua");
46#else 46#else
47#include "lsselect.loh" 47#include "lsselect.loh"