diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-01-25 21:56:01 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-01-25 21:56:01 +0000 |
commit | 03e063c21eb153197d56cc82fa0356a15d7a467f (patch) | |
tree | c15813a8aeae21681e22b13f7634f1ace4e1003f | |
parent | 973295ba18631846ef2d2d1f891f436cfa5199e5 (diff) | |
download | luasocket-03e063c21eb153197d56cc82fa0356a15d7a467f.tar.gz luasocket-03e063c21eb153197d56cc82fa0356a15d7a467f.tar.bz2 luasocket-03e063c21eb153197d56cc82fa0356a15d7a467f.zip |
Updated for LuaSocket 1.2
Added description for daytimeclnt.lua, echoclnt.lua, echosrvr.lua
and tftpclnt.lua.
-rw-r--r-- | samples/README | 47 |
1 files changed, 25 insertions, 22 deletions
diff --git a/samples/README b/samples/README index b891547..5e7b338 100644 --- a/samples/README +++ b/samples/README | |||
@@ -1,32 +1,35 @@ | |||
1 | This directory contains some sample programs using LuaSocket as | 1 | This directory contains some sample programs using LuaSocket. This code |
2 | well as the automatic tests used to make sure the library is | 2 | is not supported. |
3 | working properly. | ||
4 | 3 | ||
5 | The files provided are: | 4 | listener.lua -- socket to stdout |
5 | talker.lua -- stdin to socket | ||
6 | 6 | ||
7 | testsrvr.lua -- test server | 7 | listener.lua and talker.lua are about the simplest applications you can |
8 | testclnt.lua -- test client | 8 | write using LuaSocket. Run 'luasocket listen.lua' and 'luasocket |
9 | testcmd.lua -- test command definitions | 9 | talk.lua' on different terminals. Whatever you type on talk.lua will be |
10 | printed by listen.lua. | ||
10 | 11 | ||
11 | To run the automatic tests on your system, make sure to compile | 12 | dict.lua -- dict client |
12 | the library with _DEBUG defined (check makefile) and then open two | ||
13 | terminals. Run 'luasocket testsrvr.lua' on one of them and | ||
14 | 'luasocket testclnt.lua' on the other. The programs should start | ||
15 | talking to each other. | ||
16 | 13 | ||
17 | listener.lua -- echo server | 14 | The dict.lua module is a cool simple client for the DICT protocol, |
18 | talker.lua -- echo tester | 15 | written by Luiz Henrique Figueiredo. Just run it and enter a few words |
16 | to see it working. | ||
19 | 17 | ||
20 | listener.lua and talker.lua are about the simplest applications | 18 | daytimeclnt.lua -- day time client |
21 | you can write using LuaSocket. Run 'luasocket listen.lua' and | ||
22 | 'luasocket talk.lua' on different terminals. Whatever you type on | ||
23 | talk.lua will be printed by listen.lua. | ||
24 | 19 | ||
25 | dict.lua -- dict client | 20 | Just run the program to retrieve the hour and date in readable form from |
21 | any server running an UDP daytime daemon. | ||
26 | 22 | ||
27 | The dict.lua module is a cool simple client for the DICT protocol, | 23 | echoclnt.lua -- UDP echo client |
28 | written by Luiz Henrique Figueiredo. Just run it and enter a few | 24 | echosrvr.lua -- UDP echo server |
29 | words to see it working. | 25 | |
26 | These are a UDP echo client/server pair. They work with other client and | ||
27 | servers as well. | ||
28 | |||
29 | tftpclnt.lua -- Trivial FTP client | ||
30 | |||
31 | This module implements file retrieval by the TFTP protocol. Its main use | ||
32 | is to test the UDP code, but someone might find it usefull. | ||
30 | 33 | ||
31 | Good luck, | 34 | Good luck, |
32 | Diego. | 35 | Diego. |