diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-09-27 20:04:47 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-09-27 20:04:47 +0000 |
commit | 27e6140a90b63875becbc27f58d79b0433f3648d (patch) | |
tree | d7f177e673106718e44dd82199fc92dcca18c2aa | |
parent | 480e66d539c48a7bd49713790ed4602824a4f693 (diff) | |
download | luasocket-27e6140a90b63875becbc27f58d79b0433f3648d.tar.gz luasocket-27e6140a90b63875becbc27f58d79b0433f3648d.tar.bz2 luasocket-27e6140a90b63875becbc27f58d79b0433f3648d.zip |
Updated for LuaSocket 1.4
-rw-r--r-- | samples/README | 31 |
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 | ||
7 | listener.lua and talker.lua are about the simplest applications you can | 7 | listener.lua and talker.lua are about the simplest applications you can |
8 | write using LuaSocket. Run 'luasocket listen.lua' and 'luasocket | 8 | write using LuaSocket. Run |
9 | talk.lua' on different terminals. Whatever you type on talk.lua will be | 9 | |
10 | 'luasocket listen.lua' and 'luasocket talk.lua' | ||
11 | |||
12 | on different terminals. Whatever you type on talk.lua will be | ||
10 | printed by listen.lua. | 13 | printed 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 | ||
47 | This module is a client that uses the FTP and HTTP code to implement a | 50 | This little program is a client that uses the FTP and HTTP code to |
48 | command line file graber. Just run 'luasocket -f get.lua <remote-file> | 51 | implement a command line file graber. Just run |
49 | <local-file>' to download a remote file (either ftp:// or http://) to | 52 | |
50 | the specified local file. The program also prints the download | 53 | luasocket -f get.lua <remote-file> [<local-file>] |
51 | throughput during download. | 54 | |
55 | to download a remote file (either ftp:// or http://) to the specified | ||
56 | local file. The program also prints the download throughput, elapsed | ||
57 | time, bytes already downloaded etc during download. | ||
58 | |||
59 | check-links.lua -- HTML link checker program | ||
60 | |||
61 | This little program scans a HTML file and checks for broken links. It is | ||
62 | similar to check-links.pl by Jamie Zawinski, but uses all facilities of | ||
63 | the LuaSocket library and the Lua language. It has not been thoroughly | ||
64 | tested, but it should work. Just run | ||
65 | |||
66 | luasocket -f check-links.lua {<url>} > output | ||
67 | |||
68 | and open the result to see a list of broken links. | ||
52 | 69 | ||
53 | Good luck, | 70 | Good luck, |
54 | Diego. | 71 | Diego. |