diff options
-rw-r--r-- | samples/README | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/samples/README b/samples/README index ef5017b..b891547 100644 --- a/samples/README +++ b/samples/README | |||
@@ -1,32 +1,32 @@ | |||
1 | This directory contains some sample programs using LuaSocket as well as | 1 | This directory contains some sample programs using LuaSocket as |
2 | the automatic tests used to make sure the library is working properly. | 2 | well as the automatic tests used to make sure the library is |
3 | working properly. | ||
3 | 4 | ||
4 | The files provided are: | 5 | The files provided are: |
5 | 6 | ||
6 | server.lua -- test server | 7 | testsrvr.lua -- test server |
7 | client.lua -- test client | 8 | testclnt.lua -- test client |
8 | command.lua -- test command definitions | 9 | testcmd.lua -- test command definitions |
9 | 10 | ||
10 | The automatic tests are composed by three files: client.lua, command.lua | 11 | To run the automatic tests on your system, make sure to compile |
11 | and server.lua. To run the automatic tests on your system, make sure to | 12 | the library with _DEBUG defined (check makefile) and then open two |
12 | compile the library with _DEBUG defined (check makefile) and then open | 13 | terminals. Run 'luasocket testsrvr.lua' on one of them and |
13 | two terminals. Run 'luasocket server.lua' on one of them and 'luasocket | 14 | 'luasocket testclnt.lua' on the other. The programs should start |
14 | client.lua' on the other. The programs should start talking to each | 15 | talking to each other. |
15 | other. | ||
16 | 16 | ||
17 | listen.lua -- echo server | 17 | listener.lua -- echo server |
18 | talk.lua -- echo tester | 18 | talker.lua -- echo tester |
19 | 19 | ||
20 | listen.lua and talk.lua are about the simplest applications you can | 20 | listener.lua and talker.lua are about the simplest applications |
21 | write using LuaSocket. Run 'luasocket listen.lua' and 'luasocket | 21 | you can write using LuaSocket. Run 'luasocket listen.lua' and |
22 | talk.lua' on different terminals. Whatever you type on talk.lua will be | 22 | 'luasocket talk.lua' on different terminals. Whatever you type on |
23 | printed by listen.lua. | 23 | talk.lua will be printed by listen.lua. |
24 | 24 | ||
25 | dict.lua -- dict client | 25 | dict.lua -- dict client |
26 | 26 | ||
27 | The dict.lua module is a cool simple client for the DICT protocol, | 27 | The dict.lua module is a cool simple client for the DICT protocol, |
28 | written by Luiz Henrique Figueiredo. Just run it and enter a few words | 28 | written by Luiz Henrique Figueiredo. Just run it and enter a few |
29 | to see it working. | 29 | words to see it working. |
30 | 30 | ||
31 | Good luck, | 31 | Good luck, |
32 | Diego. | 32 | Diego. |