aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-17 21:46:22 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-06-17 21:46:22 +0000
commit597a062b1bc38488df1363995eece8a9f19c7111 (patch)
treeba4ccaa8be98d1100aed63abb9c42c099f2c41bb /samples
parenteac26d2c8dafab604ef2e97e504326cfaf1033cf (diff)
downloadluasocket-597a062b1bc38488df1363995eece8a9f19c7111.tar.gz
luasocket-597a062b1bc38488df1363995eece8a9f19c7111.tar.bz2
luasocket-597a062b1bc38488df1363995eece8a9f19c7111.zip
Almost ready for distribution...
Diffstat (limited to 'samples')
-rw-r--r--samples/README27
1 files changed, 18 insertions, 9 deletions
diff --git a/samples/README b/samples/README
index 9369277..b5802e5 100644
--- a/samples/README
+++ b/samples/README
@@ -1,4 +1,4 @@
1This directory contains some sample programs using LuaSocket. This code 1This directory contains some sample programs using LuaSocket. This code
2is not supported. 2is not supported.
3 3
4 listener.lua -- socket to stdout 4 listener.lua -- socket to stdout
@@ -7,21 +7,26 @@ 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 'lua -l luasocket listen.lua' and 'lua -l luasocket talk.lua' 10 'lua listen.lua' and 'lua 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.
14 14
15 dict.lua -- dict client 15 b64.lua
16 qp.lua
17 eol.lua
16 18
17The dict.lua module was a cool simple client for the DICT protocol, 19These are tiny programs that perform Base64, Quoted-Printable and
18written by Luiz Henrique Figueiredo. This new version has been converted 20end-of-line marker conversions.
19into a library, similar to the HTTP and FTP libraries, that can be used 21
20from within any luasocket application. Take a look on the source code 22 cddb.lua -- CDDB client
21and you will be able to figure out how to use it. 23
24This is the first try on a simple CDDB client. Not really useful, but one
25day it might become a module.
22 26
23 daytimeclnt.lua -- day time client 27 daytimeclnt.lua -- day time client
24 28
29
25Just run the program to retrieve the hour and date in readable form from 30Just run the program to retrieve the hour and date in readable form from
26any server running an UDP daytime daemon. 31any server running an UDP daytime daemon.
27 32
@@ -40,5 +45,9 @@ function and shows how to create a simple server whith LuaSocket. Just
40run tinyirc.lua and then open as many telnet connections as you want 45run tinyirc.lua and then open as many telnet connections as you want
41to ports 8080 and 8081. 46to ports 8080 and 8081.
42 47
48 check-memory.lua -- checks memory consumption
49
50This is just to see how much memory each module uses.
51
43Good luck, 52Good luck,
44Diego. 53Diego.