diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-06-06 21:00:11 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-06-06 21:00:11 +0000 |
| commit | 2b7ea458d64d88b1393f75e9b669d8510914e654 (patch) | |
| tree | 48c2e61e10bb113ac44debe9e597c2d263b29f2f | |
| parent | 8f1349ddd4b0af71bec244a1be09b09c22709ae1 (diff) | |
| download | luasocket-2b7ea458d64d88b1393f75e9b669d8510914e654.tar.gz luasocket-2b7ea458d64d88b1393f75e9b669d8510914e654.tar.bz2 luasocket-2b7ea458d64d88b1393f75e9b669d8510914e654.zip | |
Updated for 1.3b
| -rw-r--r-- | samples/README | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/samples/README b/samples/README index e295035..07bc7dc 100644 --- a/samples/README +++ b/samples/README | |||
| @@ -33,14 +33,22 @@ servers as well. | |||
| 33 | This module implements file retrieval by the TFTP protocol. Its main use | 33 | This module implements file retrieval by the TFTP protocol. Its main use |
| 34 | is to test the UDP code, but someone might find it usefull. | 34 | is to test the UDP code, but someone might find it usefull. |
| 35 | 35 | ||
| 36 | broadcast.lua -- Broadcast telnet server | 36 | tinyirc.lua -- irc like broadcast server |
| 37 | 37 | ||
| 38 | This is a simple server that waits simultaneously on two server sockets for | 38 | This is a simple server that waits simultaneously on two server sockets |
| 39 | telnet connections. Everything it receives from the telnet clients is | 39 | for telnet connections. Everything it receives from the telnet clients |
| 40 | broadcast to every other connected client. It tests the select function and | 40 | is broadcasted to every other connected client. It tests the select |
| 41 | shows how to create a simple server whith LuaSocket. Just run broadcast.lua | 41 | function and shows how to create a simple server whith LuaSocket. Just |
| 42 | and then open as many telnet connections as you want to ports 8080 and | 42 | run broadcast.lua and then open as many telnet connections as you want |
| 43 | 8081. | 43 | to ports 8080 and 8081. |
| 44 | |||
| 45 | get.lua -- file retriever | ||
| 46 | |||
| 47 | This module is a client that uses the FTP and HTTP code to implement a | ||
| 48 | command line file graber. Just run 'luasocket -f get.lua <remote-file> | ||
| 49 | <local-file>' to download a remote file (either ftp:// or http://) to | ||
| 50 | the specified local file. The program also prints the download | ||
| 51 | throughput during download. | ||
| 44 | 52 | ||
| 45 | Good luck, | 53 | Good luck, |
| 46 | Diego. | 54 | Diego. |
