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