diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-10-05 03:16:17 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-10-05 03:16:17 +0000 |
commit | 72eceedc62d2cb65421fe9e0062a5d8f8c2bd3c4 (patch) | |
tree | 8ad4d77c2a5889748afa164188d566570028a513 | |
parent | a65c599fc5014de278d10c64fa0e425149517fe8 (diff) | |
download | luasocket-72eceedc62d2cb65421fe9e0062a5d8f8c2bd3c4.tar.gz luasocket-72eceedc62d2cb65421fe9e0062a5d8f8c2bd3c4.tar.bz2 luasocket-72eceedc62d2cb65421fe9e0062a5d8f8c2bd3c4.zip |
Bugs sent by David.
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | doc/ftp.html | 4 | ||||
-rw-r--r-- | doc/http.html | 2 | ||||
-rw-r--r-- | doc/installation.html | 11 | ||||
-rw-r--r-- | doc/smtp.html | 2 | ||||
-rw-r--r-- | etc/dict.lua | 2 | ||||
-rw-r--r-- | etc/lp.lua | 1 | ||||
-rw-r--r-- | etc/tftp.lua | 1 | ||||
-rw-r--r-- | src/ftp.lua | 1 | ||||
-rw-r--r-- | src/http.lua | 1 | ||||
-rw-r--r-- | src/ltn12.lua | 1 | ||||
-rw-r--r-- | src/mime.lua | 1 | ||||
-rw-r--r-- | src/smtp.lua | 1 | ||||
-rw-r--r-- | src/socket.lua | 1 | ||||
-rw-r--r-- | src/tp.lua | 1 | ||||
-rw-r--r-- | src/url.lua | 1 |
16 files changed, 12 insertions, 21 deletions
@@ -1,4 +1,4 @@ | |||
1 | 1 | fix unix.c to return just a function | |
2 | get rid of setmetatable(, nil) since packages don't need this anymore in | 2 | get rid of setmetatable(, nil) since packages don't need this anymore in |
3 | 5.1 | 3 | 5.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> |
141 | pump step function used to pass data from the | 141 | pump step function used to pass data from the |
142 | server to the sink. Defaults to the LTN12 <tt>pump.step</tt> function; | 142 | server 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> |
226 | pump step function used to pass data from the | 226 | pump step function used to pass data from the |
227 | server to the sink. Defaults to the LTN12 <tt>pump.step</tt> function; | 227 | server 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 |
182 | function from automatically following 301 or 302 server redirect messages; | 182 | function 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 | <SHARE>/compat-5.1.lua | 77 | <SHARE>/compat-5.1.lua |
78 | <SHARE>/ltn12.lua | 78 | <SHARE>/ltn12.lua |
79 | <SHARE>/mime/init.lua | 79 | <SHARE>/mime/init.lua (originally mime.lua) |
80 | <LIB>/mime/core.dll | 80 | <LIB>/mime/core.dll |
81 | <SHARE>/socket/init.lua | 81 | <SHARE>/socket/init.lua (originally socket.lua) |
82 | <LIB>/socket/core.dll | 82 | <LIB>/socket/core.dll |
83 | <SHARE>/socket/http.lua | 83 | <SHARE>/socket/http.lua |
84 | <SHARE>/socket/tp.lua | 84 | <SHARE>/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> |
91 | would be replaced by <tt>core.so</tt>. | 91 | would 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 | ||
93 | with <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 |
94 | environment variables need to be set. The first environment variable tells | 97 | environment variables need to be set. The first environment variable tells |
@@ -110,7 +113,7 @@ LUA_CPATH=<LIB>/?.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> |
162 | pump step function used to pass data from the | 162 | pump step function used to pass data from the |
163 | source to the server. Defaults to the LTN12 <tt>pump.step</tt> function; | 163 | source 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") | |||
14 | local socket = require("socket") | 14 | local socket = require("socket") |
15 | local url = require("socket.url") | 15 | local url = require("socket.url") |
16 | local tp = require("socket.tp") | 16 | local tp = require("socket.tp") |
17 | |||
18 | module("socket.dict") | 17 | module("socket.dict") |
19 | getmetatable(_M).__index = nil | ||
20 | 18 | ||
21 | ----------------------------------------------------------------------------- | 19 | ----------------------------------------------------------------------------- |
22 | -- Globals | 20 | -- Globals |
@@ -15,7 +15,6 @@ local string = require("string") | |||
15 | local socket = require("socket") | 15 | local socket = require("socket") |
16 | local ltn12 = require("ltn12") | 16 | local ltn12 = require("ltn12") |
17 | module("socket.lp") | 17 | module("socket.lp") |
18 | getmetatable(_M).__index = nil | ||
19 | 18 | ||
20 | -- default port | 19 | -- default port |
21 | PORT = 515 | 20 | PORT = 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") | |||
16 | local ltn12 = require("ltn12") | 16 | local ltn12 = require("ltn12") |
17 | local url = require("socket.url") | 17 | local url = require("socket.url") |
18 | module("socket.tftp") | 18 | module("socket.tftp") |
19 | getmetatable(_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") | |||
17 | local tp = require("socket.tp") | 17 | local tp = require("socket.tp") |
18 | local ltn12 = require("ltn12") | 18 | local ltn12 = require("ltn12") |
19 | module("socket.ftp") | 19 | module("socket.ftp") |
20 | getmetatable(_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") | |||
16 | local base = _G | 16 | local base = _G |
17 | local table = require("table") | 17 | local table = require("table") |
18 | module("socket.http") | 18 | module("socket.http") |
19 | getmetatable(_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") | |||
12 | local table = require("table") | 12 | local table = require("table") |
13 | local base = _G | 13 | local base = _G |
14 | module("ltn12") | 14 | module("ltn12") |
15 | getmetatable(_M).__index = nil | ||
16 | 15 | ||
17 | filter = {} | 16 | filter = {} |
18 | source = {} | 17 | source = {} |
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") | |||
14 | local io = require("io") | 14 | local io = require("io") |
15 | local string = require("string") | 15 | local string = require("string") |
16 | module("mime") | 16 | module("mime") |
17 | getmetatable(_M).__index = nil | ||
18 | 17 | ||
19 | -- encode, decode and wrap algorithm tables | 18 | -- encode, decode and wrap algorithm tables |
20 | encodet = {} | 19 | encodet = {} |
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") | |||
18 | local ltn12 = require("ltn12") | 18 | local ltn12 = require("ltn12") |
19 | local mime = require("mime") | 19 | local mime = require("mime") |
20 | module("socket.smtp") | 20 | module("socket.smtp") |
21 | getmetatable(_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") | |||
12 | local math = require("math") | 12 | local math = require("math") |
13 | local socket = require("socket.core") | 13 | local socket = require("socket.core") |
14 | module("socket") | 14 | module("socket") |
15 | getmetatable(_M).__index = nil | ||
16 | 15 | ||
17 | ----------------------------------------------------------------------------- | 16 | ----------------------------------------------------------------------------- |
18 | -- Exported auxiliar functions | 17 | -- Exported auxiliar functions |
@@ -13,7 +13,6 @@ local string = require("string") | |||
13 | local socket = require("socket") | 13 | local socket = require("socket") |
14 | local ltn12 = require("ltn12") | 14 | local ltn12 = require("ltn12") |
15 | module("socket.tp") | 15 | module("socket.tp") |
16 | getmetatable(_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") | |||
12 | local base = _G | 12 | local base = _G |
13 | local table = require("table") | 13 | local table = require("table") |
14 | module("socket.url") | 14 | module("socket.url") |
15 | getmetatable(_M).__index = nil | ||
16 | 15 | ||
17 | ----------------------------------------------------------------------------- | 16 | ----------------------------------------------------------------------------- |
18 | -- Module version | 17 | -- Module version |