aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2003-06-30 18:58:01 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2003-06-30 18:58:01 +0000
commit90063f9e77e08b24fa4f1d677932760cd795cc5c (patch)
treeade6c4ea0db57c12864dfcd036389b7c8a296e23
parent4cbd8e19839f82b1101d526a0efbd5d3d2064950 (diff)
downloadluasocket-90063f9e77e08b24fa4f1d677932760cd795cc5c.tar.gz
luasocket-90063f9e77e08b24fa4f1d677932760cd795cc5c.tar.bz2
luasocket-90063f9e77e08b24fa4f1d677932760cd795cc5c.zip
Oh well. More modifications.
-rw-r--r--samples/README31
1 files changed, 2 insertions, 29 deletions
diff --git a/samples/README b/samples/README
index 68cb1eb..9369277 100644
--- a/samples/README
+++ b/samples/README
@@ -7,7 +7,7 @@ is not supported.
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 8write using LuaSocket. Run
9 9
10 'luasocket listen.lua' and 'luasocket talk.lua' 10 'lua -l luasocket listen.lua' and 'lua -l luasocket talk.lua'
11 11
12on different terminals. Whatever you type on talk.lua will be 12on different terminals. Whatever you type on talk.lua will be
13printed by listen.lua. 13printed by listen.lua.
@@ -31,41 +31,14 @@ any server running an UDP daytime daemon.
31These are a UDP echo client/server pair. They work with other client and 31These are a UDP echo client/server pair. They work with other client and
32servers as well. 32servers as well.
33 33
34 tftpclnt.lua -- Trivial FTP client
35
36This module implements file retrieval by the TFTP protocol. Its main use
37is to test the UDP code, but someone might find it usefull.
38
39 tinyirc.lua -- irc like broadcast server 34 tinyirc.lua -- irc like broadcast server
40 35
41This is a simple server that waits simultaneously on two server sockets 36This is a simple server that waits simultaneously on two server sockets
42for telnet connections. Everything it receives from the telnet clients 37for telnet connections. Everything it receives from the telnet clients
43is broadcasted to every other connected client. It tests the select 38is broadcasted to every other connected client. It tests the select
44function and shows how to create a simple server whith LuaSocket. Just 39function and shows how to create a simple server whith LuaSocket. Just
45run broadcast.lua and then open as many telnet connections as you want 40run tinyirc.lua and then open as many telnet connections as you want
46to ports 8080 and 8081. 41to ports 8080 and 8081.
47 42
48 get.lua -- file retriever
49
50This little program is a client that uses the FTP and HTTP code to
51implement a command line file graber. Just run
52
53 luasocket -f get.lua <remote-file> [<local-file>]
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.
69
70Good luck, 43Good luck,
71Diego. 44Diego.