aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2005-10-05 03:16:17 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2005-10-05 03:16:17 +0000
commit72eceedc62d2cb65421fe9e0062a5d8f8c2bd3c4 (patch)
tree8ad4d77c2a5889748afa164188d566570028a513
parenta65c599fc5014de278d10c64fa0e425149517fe8 (diff)
downloadluasocket-72eceedc62d2cb65421fe9e0062a5d8f8c2bd3c4.tar.gz
luasocket-72eceedc62d2cb65421fe9e0062a5d8f8c2bd3c4.tar.bz2
luasocket-72eceedc62d2cb65421fe9e0062a5d8f8c2bd3c4.zip
Bugs sent by David.
-rw-r--r--TODO2
-rw-r--r--doc/ftp.html4
-rw-r--r--doc/http.html2
-rw-r--r--doc/installation.html11
-rw-r--r--doc/smtp.html2
-rw-r--r--etc/dict.lua2
-rw-r--r--etc/lp.lua1
-rw-r--r--etc/tftp.lua1
-rw-r--r--src/ftp.lua1
-rw-r--r--src/http.lua1
-rw-r--r--src/ltn12.lua1
-rw-r--r--src/mime.lua1
-rw-r--r--src/smtp.lua1
-rw-r--r--src/socket.lua1
-rw-r--r--src/tp.lua1
-rw-r--r--src/url.lua1
16 files changed, 12 insertions, 21 deletions
diff --git a/TODO b/TODO
index 1d7a1db..a405fbf 100644
--- a/TODO
+++ b/TODO
@@ -1,4 +1,4 @@
1 1fix unix.c to return just a function
2get rid of setmetatable(, nil) since packages don't need this anymore in 2get rid of setmetatable(, nil) since packages don't need this anymore in
35.1 35.1
4 4
diff --git a/doc/ftp.html b/doc/ftp.html
index 8b7ed96..1886344 100644
--- a/doc/ftp.html
+++ b/doc/ftp.html
@@ -140,7 +140,7 @@ authentication. Defaults to "<tt>ftp:anonymous@anonymous.org</tt>";
140<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> 140<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a>
141pump step function used to pass data from the 141pump step function used to pass data from the
142server to the sink. Defaults to the LTN12 <tt>pump.step</tt> function; 142server to the sink. Defaults to the LTN12 <tt>pump.step</tt> function;
143<li><tt>accept</tt>: An optional function to be used instead of 143<li><tt>create</tt>: An optional function to be used instead of
144<a href=tcp.html#socket.tcp><tt>socket.tcp</tt></a> when the communications socket is created. 144<a href=tcp.html#socket.tcp><tt>socket.tcp</tt></a> when the communications socket is created.
145</ul> 145</ul>
146 146
@@ -225,7 +225,7 @@ authentication. Defaults to "<tt>ftp:anonymous@anonymous.org</tt>";
225<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> 225<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a>
226pump step function used to pass data from the 226pump step function used to pass data from the
227server to the sink. Defaults to the LTN12 <tt>pump.step</tt> function; 227server to the sink. Defaults to the LTN12 <tt>pump.step</tt> function;
228<li><tt>accept</tt>: An optional function to be used instead of 228<li><tt>create</tt>: An optional function to be used instead of
229<a href=tcp.html#socket.tcp><tt>socket.tcp</tt></a> when the communications socket is created. 229<a href=tcp.html#socket.tcp><tt>socket.tcp</tt></a> when the communications socket is created.
230</ul> 230</ul>
231 231
diff --git a/doc/http.html b/doc/http.html
index 27942b1..096ab2b 100644
--- a/doc/http.html
+++ b/doc/http.html
@@ -180,7 +180,7 @@ Defaults to the LTN12 <tt>pump.step</tt> function.
180<li><tt>proxy</tt>: The URL of a proxy server to use. Defaults to no proxy; 180<li><tt>proxy</tt>: The URL of a proxy server to use. Defaults to no proxy;
181<li><tt>redirect</tt>: Set to <tt><b>false</b></tt> to prevent the 181<li><tt>redirect</tt>: Set to <tt><b>false</b></tt> to prevent the
182function from automatically following 301 or 302 server redirect messages; 182function from automatically following 301 or 302 server redirect messages;
183<li><tt>accept</tt>: An optional function to be used instead of 183<li><tt>create</tt>: An optional function to be used instead of
184<a href=tcp.html#socket.tcp><tt>socket.tcp</tt></a> when the communications socket is created. 184<a href=tcp.html#socket.tcp><tt>socket.tcp</tt></a> when the communications socket is created.
185</ul> 185</ul>
186 186
diff --git a/doc/installation.html b/doc/installation.html
index d30e919..1b82ed3 100644
--- a/doc/installation.html
+++ b/doc/installation.html
@@ -76,9 +76,9 @@ distribution directory structure:</p>
76<pre class=example> 76<pre class=example>
77&lt;SHARE&gt;/compat-5.1.lua 77&lt;SHARE&gt;/compat-5.1.lua
78&lt;SHARE&gt;/ltn12.lua 78&lt;SHARE&gt;/ltn12.lua
79&lt;SHARE&gt;/mime/init.lua 79&lt;SHARE&gt;/mime/init.lua (originally mime.lua)
80&lt;LIB&gt;/mime/core.dll 80&lt;LIB&gt;/mime/core.dll
81&lt;SHARE&gt;/socket/init.lua 81&lt;SHARE&gt;/socket/init.lua (originally socket.lua)
82&lt;LIB&gt;/socket/core.dll 82&lt;LIB&gt;/socket/core.dll
83&lt;SHARE&gt;/socket/http.lua 83&lt;SHARE&gt;/socket/http.lua
84&lt;SHARE&gt;/socket/tp.lua 84&lt;SHARE&gt;/socket/tp.lua
@@ -88,7 +88,10 @@ distribution directory structure:</p>
88</pre> 88</pre>
89 89
90<p> Naturally, on Unix systems, <tt>core.dll</tt> 90<p> Naturally, on Unix systems, <tt>core.dll</tt>
91would be replaced by <tt>core.so</tt>. 91would be replaced by <tt>core.so</tt>. Notice that in the instalation,
92<tt>socket.lua</tt> becomes <tt>socket/init.lua</tt>, and the same happens
93with <tt>mime.lua</tt>, which becomes <tt>mime/init.lua</tt>.
94</p>
92 95
93<p> In order for the interpreter to find all LuaSocket components, three 96<p> In order for the interpreter to find all LuaSocket components, three
94environment variables need to be set. The first environment variable tells 97environment variables need to be set. The first environment variable tells
@@ -110,7 +113,7 @@ LUA_CPATH=&lt;LIB&gt;/?.dll;?.dll
110</pre> 113</pre>
111 114
112<p> Again, naturally, on Unix systmems the shared library extension would be 115<p> Again, naturally, on Unix systmems the shared library extension would be
113<tt>.so</tt> instead of <tt>.dll</tt></p> 116<tt>.so</tt> instead of <tt>.dll</tt>.</p>
114 117
115<h3>Using LuaSocket</h3> 118<h3>Using LuaSocket</h3>
116 119
diff --git a/doc/smtp.html b/doc/smtp.html
index 1e1523b..14def8a 100644
--- a/doc/smtp.html
+++ b/doc/smtp.html
@@ -161,7 +161,7 @@ local machine host name;
161<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a> 161<a href="http://lua-users.org/wiki/FiltersSourcesAndSinks">LTN12</a>
162pump step function used to pass data from the 162pump step function used to pass data from the
163source to the server. Defaults to the LTN12 <tt>pump.step</tt> function; 163source to the server. Defaults to the LTN12 <tt>pump.step</tt> function;
164<li><tt>accept</tt>: An optional function to be used instead of 164<li><tt>create</tt>: An optional function to be used instead of
165<a href=tcp.html#socket.tcp><tt>socket.tcp</tt></a> when the communications socket is created. 165<a href=tcp.html#socket.tcp><tt>socket.tcp</tt></a> when the communications socket is created.
166</ul> 166</ul>
167 167
diff --git a/etc/dict.lua b/etc/dict.lua
index 62d6913..2d035a7 100644
--- a/etc/dict.lua
+++ b/etc/dict.lua
@@ -14,9 +14,7 @@ local table = require("table")
14local socket = require("socket") 14local socket = require("socket")
15local url = require("socket.url") 15local url = require("socket.url")
16local tp = require("socket.tp") 16local tp = require("socket.tp")
17
18module("socket.dict") 17module("socket.dict")
19getmetatable(_M).__index = nil
20 18
21----------------------------------------------------------------------------- 19-----------------------------------------------------------------------------
22-- Globals 20-- Globals
diff --git a/etc/lp.lua b/etc/lp.lua
index 66a9692..a60fb86 100644
--- a/etc/lp.lua
+++ b/etc/lp.lua
@@ -15,7 +15,6 @@ local string = require("string")
15local socket = require("socket") 15local socket = require("socket")
16local ltn12 = require("ltn12") 16local ltn12 = require("ltn12")
17module("socket.lp") 17module("socket.lp")
18getmetatable(_M).__index = nil
19 18
20-- default port 19-- default port
21PORT = 515 20PORT = 515
diff --git a/etc/tftp.lua b/etc/tftp.lua
index b974db8..1b589fb 100644
--- a/etc/tftp.lua
+++ b/etc/tftp.lua
@@ -16,7 +16,6 @@ local socket = require("socket")
16local ltn12 = require("ltn12") 16local ltn12 = require("ltn12")
17local url = require("socket.url") 17local url = require("socket.url")
18module("socket.tftp") 18module("socket.tftp")
19getmetatable(_M).__index = nil
20 19
21----------------------------------------------------------------------------- 20-----------------------------------------------------------------------------
22-- Program constants 21-- Program constants
diff --git a/src/ftp.lua b/src/ftp.lua
index 226e04c..c83c1cb 100644
--- a/src/ftp.lua
+++ b/src/ftp.lua
@@ -17,7 +17,6 @@ local url = require("socket.url")
17local tp = require("socket.tp") 17local tp = require("socket.tp")
18local ltn12 = require("ltn12") 18local ltn12 = require("ltn12")
19module("socket.ftp") 19module("socket.ftp")
20getmetatable(_M).__index = nil
21 20
22----------------------------------------------------------------------------- 21-----------------------------------------------------------------------------
23-- Program constants 22-- Program constants
diff --git a/src/http.lua b/src/http.lua
index fe779a3..f08da07 100644
--- a/src/http.lua
+++ b/src/http.lua
@@ -16,7 +16,6 @@ local string = require("string")
16local base = _G 16local base = _G
17local table = require("table") 17local table = require("table")
18module("socket.http") 18module("socket.http")
19getmetatable(_M).__index = nil
20 19
21----------------------------------------------------------------------------- 20-----------------------------------------------------------------------------
22-- Program constants 21-- Program constants
diff --git a/src/ltn12.lua b/src/ltn12.lua
index 633e0d7..733422d 100644
--- a/src/ltn12.lua
+++ b/src/ltn12.lua
@@ -12,7 +12,6 @@ local string = require("string")
12local table = require("table") 12local table = require("table")
13local base = _G 13local base = _G
14module("ltn12") 14module("ltn12")
15getmetatable(_M).__index = nil
16 15
17filter = {} 16filter = {}
18source = {} 17source = {}
diff --git a/src/mime.lua b/src/mime.lua
index af42dcd..f6a9333 100644
--- a/src/mime.lua
+++ b/src/mime.lua
@@ -14,7 +14,6 @@ local mime = require("mime.core")
14local io = require("io") 14local io = require("io")
15local string = require("string") 15local string = require("string")
16module("mime") 16module("mime")
17getmetatable(_M).__index = nil
18 17
19-- encode, decode and wrap algorithm tables 18-- encode, decode and wrap algorithm tables
20encodet = {} 19encodet = {}
diff --git a/src/smtp.lua b/src/smtp.lua
index 5c485c2..03b9e9b 100644
--- a/src/smtp.lua
+++ b/src/smtp.lua
@@ -18,7 +18,6 @@ local tp = require("socket.tp")
18local ltn12 = require("ltn12") 18local ltn12 = require("ltn12")
19local mime = require("mime") 19local mime = require("mime")
20module("socket.smtp") 20module("socket.smtp")
21getmetatable(_M).__index = nil
22 21
23----------------------------------------------------------------------------- 22-----------------------------------------------------------------------------
24-- Program constants 23-- Program constants
diff --git a/src/socket.lua b/src/socket.lua
index be01667..6eb3159 100644
--- a/src/socket.lua
+++ b/src/socket.lua
@@ -12,7 +12,6 @@ local string = require("string")
12local math = require("math") 12local math = require("math")
13local socket = require("socket.core") 13local socket = require("socket.core")
14module("socket") 14module("socket")
15getmetatable(_M).__index = nil
16 15
17----------------------------------------------------------------------------- 16-----------------------------------------------------------------------------
18-- Exported auxiliar functions 17-- Exported auxiliar functions
diff --git a/src/tp.lua b/src/tp.lua
index 7823699..984bd67 100644
--- a/src/tp.lua
+++ b/src/tp.lua
@@ -13,7 +13,6 @@ local string = require("string")
13local socket = require("socket") 13local socket = require("socket")
14local ltn12 = require("ltn12") 14local ltn12 = require("ltn12")
15module("socket.tp") 15module("socket.tp")
16getmetatable(_M).__index = nil
17 16
18----------------------------------------------------------------------------- 17-----------------------------------------------------------------------------
19-- Program constants 18-- Program constants
diff --git a/src/url.lua b/src/url.lua
index 5427cbc..ec62ad6 100644
--- a/src/url.lua
+++ b/src/url.lua
@@ -12,7 +12,6 @@ local string = require("string")
12local base = _G 12local base = _G
13local table = require("table") 13local table = require("table")
14module("socket.url") 14module("socket.url")
15getmetatable(_M).__index = nil
16 15
17----------------------------------------------------------------------------- 16-----------------------------------------------------------------------------
18-- Module version 17-- Module version