aboutsummaryrefslogtreecommitdiff
path: root/samples/README
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2005-11-20 08:56:19 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2005-11-20 08:56:19 +0000
commit5e09779c7f6b1710150d5a0f12d86ded7ede75c6 (patch)
treeffd2e2e7d918cc30015c89bd14122aa8cadb1546 /samples/README
parentf20f4889bfe5a02cd9b77868b90cc8042352176a (diff)
downloadluasocket-5e09779c7f6b1710150d5a0f12d86ded7ede75c6.tar.gz
luasocket-5e09779c7f6b1710150d5a0f12d86ded7ede75c6.tar.bz2
luasocket-5e09779c7f6b1710150d5a0f12d86ded7ede75c6.zip
In pre release mode!
Diffstat (limited to 'samples/README')
-rw-r--r--samples/README57
1 files changed, 24 insertions, 33 deletions
diff --git a/samples/README b/samples/README
index 0100a4a..e63a6f5 100644
--- a/samples/README
+++ b/samples/README
@@ -1,59 +1,50 @@
1This directory contains some sample programs using LuaSocket. This code 1This directory contains some sample programs using
2is not supported. 2LuaSocket. This code is not supported.
3 3
4 listener.lua -- socket to stdout 4 listener.lua -- socket to stdout
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
8write using LuaSocket. Run 8applications you can write using LuaSocket. Run
9 9
10 'lua listener.lua' and 'lua talker.lua' 10 'lua listener.lua' and 'lua talker.lua'
11 11
12on different terminals. Whatever you type on talk.lua will be 12on different terminals. Whatever you type on talk.lua will
13printed by listen.lua. 13be printed by listen.lua.
14
15 b64.lua
16 qp.lua
17 eol.lua
18
19These are tiny programs that perform Base64, Quoted-Printable and
20end-of-line marker conversions.
21 14
22 lpr.lua -- lpr client 15 lpr.lua -- lpr client
23 16
24This is a cool program written by David Burgess to print files using the 17This is a cool program written by David Burgess to print
25Line Printer Daemon protocol, widely used in Unix machines. It uses the 18files using the Line Printer Daemon protocol, widely used in
26lp.lua implementation, in the etc directory. Just run 19Unix machines. It uses the lp.lua implementation, in the
27'lua lpr.lua <filename> queue=<printername>' and the file will print! 20etc directory. Just run 'lua lpr.lua <filename>
21queue=<printername>' and the file will print!
28 22
29 cddb.lua -- CDDB client 23 cddb.lua -- CDDB client
30 24
31This is the first try on a simple CDDB client. Not really useful, but one 25This is the first try on a simple CDDB client. Not really
32day it might become a module. 26useful, but one day it might become a module.
33 27
34 daytimeclnt.lua -- day time client 28 daytimeclnt.lua -- day time client
35 29
36Just run the program to retrieve the hour and date in readable form from 30Just run the program to retrieve the hour and date in
37any server running an UDP daytime daemon. 31readable form from any server running an UDP daytime daemon.
38 32
39 echoclnt.lua -- UDP echo client 33 echoclnt.lua -- UDP echo client
40 echosrvr.lua -- UDP echo server 34 echosrvr.lua -- UDP echo server
41 35
42These are a UDP echo client/server pair. They work with other client and 36These are a UDP echo client/server pair. They work with
43servers as well. 37other client and servers as well.
44 38
45 tinyirc.lua -- irc like broadcast server 39 tinyirc.lua -- irc like broadcast server
46 40
47This is a simple server that waits simultaneously on two server sockets 41This is a simple server that waits simultaneously on two
48for telnet connections. Everything it receives from the telnet clients 42server sockets for telnet connections. Everything it
49is broadcasted to every other connected client. It tests the select 43receives from the telnet clients is broadcasted to every
50function and shows how to create a simple server whith LuaSocket. Just 44other connected client. It tests the select function and
51run tinyirc.lua and then open as many telnet connections as you want 45shows how to create a simple server whith LuaSocket. Just
52to ports 8080 and 8081. 46run tinyirc.lua and then open as many telnet connections
53 47as you want to ports 8080 and 8081.
54 check-memory.lua -- checks memory consumption
55
56This is just to see how much memory each module uses.
57 48
58Good luck, 49Good luck,
59Diego. 50Diego.