aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2001-09-27 20:04:47 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2001-09-27 20:04:47 +0000
commit27e6140a90b63875becbc27f58d79b0433f3648d (patch)
treed7f177e673106718e44dd82199fc92dcca18c2aa
parent480e66d539c48a7bd49713790ed4602824a4f693 (diff)
downloadluasocket-27e6140a90b63875becbc27f58d79b0433f3648d.tar.gz
luasocket-27e6140a90b63875becbc27f58d79b0433f3648d.tar.bz2
luasocket-27e6140a90b63875becbc27f58d79b0433f3648d.zip
Updated for LuaSocket 1.4
-rw-r--r--samples/README31
1 files changed, 24 insertions, 7 deletions
diff --git a/samples/README b/samples/README
index 07bc7dc..68cb1eb 100644
--- a/samples/README
+++ b/samples/README
@@ -5,8 +5,11 @@ is not supported.
5 talker.lua -- stdin to socket 5 talker.lua -- stdin to socket
6 6
7listener.lua and talker.lua are about the simplest applications you can 7listener.lua and talker.lua are about the simplest applications you can
8write using LuaSocket. Run 'luasocket listen.lua' and 'luasocket 8write using LuaSocket. Run
9talk.lua' on different terminals. Whatever you type on talk.lua will be 9
10 'luasocket listen.lua' and 'luasocket talk.lua'
11
12on different terminals. Whatever you type on talk.lua will be
10printed by listen.lua. 13printed by listen.lua.
11 14
12 dict.lua -- dict client 15 dict.lua -- dict client
@@ -44,11 +47,25 @@ to ports 8080 and 8081.
44 47
45 get.lua -- file retriever 48 get.lua -- file retriever
46 49
47This module is a client that uses the FTP and HTTP code to implement a 50This little program is a client that uses the FTP and HTTP code to
48command line file graber. Just run 'luasocket -f get.lua <remote-file> 51implement a command line file graber. Just run
49<local-file>' to download a remote file (either ftp:// or http://) to 52
50the specified local file. The program also prints the download 53 luasocket -f get.lua <remote-file> [<local-file>]
51throughput during download. 54
55to download a remote file (either ftp:// or http://) to the specified
56local file. The program also prints the download throughput, elapsed
57time, bytes already downloaded etc during download.
58
59 check-links.lua -- HTML link checker program
60
61This little program scans a HTML file and checks for broken links. It is
62similar to check-links.pl by Jamie Zawinski, but uses all facilities of
63the LuaSocket library and the Lua language. It has not been thoroughly
64tested, but it should work. Just run
65
66 luasocket -f check-links.lua {<url>} > output
67
68and open the result to see a list of broken links.
52 69
53Good luck, 70Good luck,
54Diego. 71Diego.