diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-03-12 20:02:21 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-03-12 20:02:21 +0000 |
| commit | 794418cd7b18a812c5b0b9b91eea2fecc2c6387d (patch) | |
| tree | 968e174eede198e757fd0b7897337b7cc3d4107a /samples | |
| parent | 98a7e91de5ec69dc451e3a1f19ec47d29028af5a (diff) | |
| download | luasocket-794418cd7b18a812c5b0b9b91eea2fecc2c6387d.tar.gz luasocket-794418cd7b18a812c5b0b9b91eea2fecc2c6387d.tar.bz2 luasocket-794418cd7b18a812c5b0b9b91eea2fecc2c6387d.zip | |
Added broadcast.lua description.
Diffstat (limited to 'samples')
| -rw-r--r-- | samples/README | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/samples/README b/samples/README index 5e7b338..a273af8 100644 --- a/samples/README +++ b/samples/README | |||
| @@ -31,5 +31,14 @@ servers as well. | |||
| 31 | This module implements file retrieval by the TFTP protocol. Its main use | 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. | 32 | is to test the UDP code, but someone might find it usefull. |
| 33 | 33 | ||
| 34 | broadcast.lua -- Broadcast telnet server | ||
| 35 | |||
| 36 | This is a simple server that waits simultaneously on two server sockets for | ||
| 37 | telnet connections. Everything it receives from the telnet clients is | ||
| 38 | broadcast to every other connected client. It tests the select function and | ||
| 39 | shows how to create a simple server whith LuaSocket. Just run broadcast.lua | ||
| 40 | and then open as many telnet connections as you want to ports 8080 and | ||
| 41 | 8081. | ||
| 42 | |||
| 34 | Good luck, | 43 | Good luck, |
| 35 | Diego. | 44 | Diego. |
