diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-06-30 18:58:01 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-06-30 18:58:01 +0000 |
commit | 90063f9e77e08b24fa4f1d677932760cd795cc5c (patch) | |
tree | ade6c4ea0db57c12864dfcd036389b7c8a296e23 | |
parent | 4cbd8e19839f82b1101d526a0efbd5d3d2064950 (diff) | |
download | luasocket-90063f9e77e08b24fa4f1d677932760cd795cc5c.tar.gz luasocket-90063f9e77e08b24fa4f1d677932760cd795cc5c.tar.bz2 luasocket-90063f9e77e08b24fa4f1d677932760cd795cc5c.zip |
Oh well. More modifications.
-rw-r--r-- | samples/README | 31 |
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. | |||
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 | 8 | write 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 | ||
12 | on different terminals. Whatever you type on talk.lua will be | 12 | on different terminals. Whatever you type on talk.lua will be |
13 | printed by listen.lua. | 13 | printed by listen.lua. |
@@ -31,41 +31,14 @@ any server running an UDP daytime daemon. | |||
31 | These are a UDP echo client/server pair. They work with other client and | 31 | These are a UDP echo client/server pair. They work with other client and |
32 | servers as well. | 32 | servers as well. |
33 | 33 | ||
34 | tftpclnt.lua -- Trivial FTP client | ||
35 | |||
36 | This module implements file retrieval by the TFTP protocol. Its main use | ||
37 | is 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 | ||
41 | This is a simple server that waits simultaneously on two server sockets | 36 | This is a simple server that waits simultaneously on two server sockets |
42 | for telnet connections. Everything it receives from the telnet clients | 37 | for telnet connections. Everything it receives from the telnet clients |
43 | is broadcasted to every other connected client. It tests the select | 38 | is broadcasted to every other connected client. It tests the select |
44 | function and shows how to create a simple server whith LuaSocket. Just | 39 | function and shows how to create a simple server whith LuaSocket. Just |
45 | run broadcast.lua and then open as many telnet connections as you want | 40 | run tinyirc.lua and then open as many telnet connections as you want |
46 | to ports 8080 and 8081. | 41 | to ports 8080 and 8081. |
47 | 42 | ||
48 | get.lua -- file retriever | ||
49 | |||
50 | This little program is a client that uses the FTP and HTTP code to | ||
51 | implement a command line file graber. Just run | ||
52 | |||
53 | luasocket -f get.lua <remote-file> [<local-file>] | ||
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. | ||
69 | |||
70 | Good luck, | 43 | Good luck, |
71 | Diego. | 44 | Diego. |