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