aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-10-11 06:18:57 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-10-11 06:18:57 +0000
commit1e5e8b5ce5573fddc7060dae3c1bf2c02788b35a (patch)
tree35012ac4464bf4a3c8ed942495ef37319b6c9ad1 /etc
parenta04f15d1ca440006a53bd0d9f98c12e5abebd969 (diff)
downloadluasocket-1e5e8b5ce5573fddc7060dae3c1bf2c02788b35a.tar.gz
luasocket-1e5e8b5ce5573fddc7060dae3c1bf2c02788b35a.tar.bz2
luasocket-1e5e8b5ce5573fddc7060dae3c1bf2c02788b35a.zip
Fine tunned modules scheme.
Adjusted client modules. Fixed proxy bug in http.
Diffstat (limited to 'etc')
-rw-r--r--etc/check-links.lua4
-rw-r--r--etc/check-memory.lua10
-rw-r--r--etc/dict.lua6
-rw-r--r--etc/get.lua6
-rw-r--r--etc/lp.lua1
-rw-r--r--etc/tftp.lua4
6 files changed, 17 insertions, 14 deletions
diff --git a/etc/check-links.lua b/etc/check-links.lua
index 4487593..79e6a54 100644
--- a/etc/check-links.lua
+++ b/etc/check-links.lua
@@ -4,8 +4,8 @@
4-- Author: Diego Nehab 4-- Author: Diego Nehab
5-- RCS ID: $Id$ 5-- RCS ID: $Id$
6----------------------------------------------------------------------------- 6-----------------------------------------------------------------------------
7local http = require("http") 7local http = require("socket.http")
8local url = require("url") 8local url = require("socket.url")
9http.TIMEOUT = 10 9http.TIMEOUT = 10
10 10
11function readfile(path) 11function readfile(path)
diff --git a/etc/check-memory.lua b/etc/check-memory.lua
index fdc6b9b..7892ba0 100644
--- a/etc/check-memory.lua
+++ b/etc/check-memory.lua
@@ -8,10 +8,10 @@ function load(s)
8end 8end
9 9
10load("socket") 10load("socket")
11load("url") 11load("socket.url")
12load("ltn12") 12load("ltn12")
13load("mime") 13load("mime")
14load("tp") 14load("socket.tp")
15load("smtp") 15load("socket.smtp")
16load("http") 16load("socket.http")
17load("ftp") 17load("socket.ftp")
diff --git a/etc/dict.lua b/etc/dict.lua
index dce1658..8c197f5 100644
--- a/etc/dict.lua
+++ b/etc/dict.lua
@@ -9,8 +9,10 @@
9-- Load required modules 9-- Load required modules
10----------------------------------------------------------------------------- 10-----------------------------------------------------------------------------
11local socket = require("socket") 11local socket = require("socket")
12local url = require("url") 12local url = require("socket.url")
13local tp = require("tp") 13local tp = require("socket.tp")
14
15module("socket.dict")
14 16
15----------------------------------------------------------------------------- 17-----------------------------------------------------------------------------
16-- Globals 18-- Globals
diff --git a/etc/get.lua b/etc/get.lua
index 712d807..0c95d54 100644
--- a/etc/get.lua
+++ b/etc/get.lua
@@ -5,9 +5,9 @@
5-- RCS ID: $Id$ 5-- RCS ID: $Id$
6----------------------------------------------------------------------------- 6-----------------------------------------------------------------------------
7local socket = require("socket") 7local socket = require("socket")
8local http = require("http") 8local http = require("socket.http")
9local ftp = require("ftp") 9local ftp = require("socket.ftp")
10local url = require("url") 10local url = require("socket.url")
11local ltn12 = require("ltn12") 11local ltn12 = require("ltn12")
12 12
13-- formats a number of seconds into human readable form 13-- formats a number of seconds into human readable form
diff --git a/etc/lp.lua b/etc/lp.lua
index 3c36b11..b69cc02 100644
--- a/etc/lp.lua
+++ b/etc/lp.lua
@@ -39,7 +39,6 @@ local function connect(localhost, option)
39 until localport > 731 39 until localport > 731
40 test(skt, err) 40 test(skt, err)
41 else skt = test(socket.tcp()) end 41 else skt = test(socket.tcp()) end
42print("'" .. host .. "'")
43 try(skt:connect(host, port)) 42 try(skt:connect(host, port))
44 return { skt = skt, try = try } 43 return { skt = skt, try = try }
45end 44end
diff --git a/etc/tftp.lua b/etc/tftp.lua
index 70db050..f4af8bc 100644
--- a/etc/tftp.lua
+++ b/etc/tftp.lua
@@ -10,7 +10,9 @@
10----------------------------------------------------------------------------- 10-----------------------------------------------------------------------------
11local socket = require("socket") 11local socket = require("socket")
12local ltn12 = require("ltn12") 12local ltn12 = require("ltn12")
13local url = require("url") 13local url = require("socket.url")
14
15module("socket.tftp")
14 16
15----------------------------------------------------------------------------- 17-----------------------------------------------------------------------------
16-- Program constants 18-- Program constants