diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2000-12-29 22:15:09 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2000-12-29 22:15:09 +0000 |
| commit | 17c4d1c30544f0ed638879835f179ada96249868 (patch) | |
| tree | 46ca8042ba8fda147f56af61e26ec2ceec41f614 /samples/README | |
| parent | 6f9d15b66027cef58441549f8ac0603ca42da0ac (diff) | |
| download | luasocket-17c4d1c30544f0ed638879835f179ada96249868.tar.gz luasocket-17c4d1c30544f0ed638879835f179ada96249868.tar.bz2 luasocket-17c4d1c30544f0ed638879835f179ada96249868.zip | |
Initial revision
Diffstat (limited to 'samples/README')
| -rw-r--r-- | samples/README | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/samples/README b/samples/README new file mode 100644 index 0000000..ef5017b --- /dev/null +++ b/samples/README | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | This directory contains some sample programs using LuaSocket as well as | ||
| 2 | the automatic tests used to make sure the library is working properly. | ||
| 3 | |||
| 4 | The files provided are: | ||
| 5 | |||
| 6 | server.lua -- test server | ||
| 7 | client.lua -- test client | ||
| 8 | command.lua -- test command definitions | ||
| 9 | |||
| 10 | The automatic tests are composed by three files: client.lua, command.lua | ||
| 11 | and server.lua. To run the automatic tests on your system, make sure to | ||
| 12 | compile the library with _DEBUG defined (check makefile) and then open | ||
| 13 | two terminals. Run 'luasocket server.lua' on one of them and 'luasocket | ||
| 14 | client.lua' on the other. The programs should start talking to each | ||
| 15 | other. | ||
| 16 | |||
| 17 | listen.lua -- echo server | ||
| 18 | talk.lua -- echo tester | ||
| 19 | |||
| 20 | listen.lua and talk.lua are about the simplest applications you can | ||
| 21 | write using LuaSocket. Run 'luasocket listen.lua' and 'luasocket | ||
| 22 | talk.lua' on different terminals. Whatever you type on talk.lua will be | ||
| 23 | printed by listen.lua. | ||
| 24 | |||
| 25 | dict.lua -- dict client | ||
| 26 | |||
| 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 | ||
| 29 | to see it working. | ||
| 30 | |||
| 31 | Good luck, | ||
| 32 | Diego. | ||
