From 794418cd7b18a812c5b0b9b91eea2fecc2c6387d Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Mon, 12 Mar 2001 20:02:21 +0000 Subject: Added broadcast.lua description. --- samples/README | 9 +++++++++ 1 file changed, 9 insertions(+) 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. This module implements file retrieval by the TFTP protocol. Its main use is to test the UDP code, but someone might find it usefull. + broadcast.lua -- Broadcast telnet server + +This is a simple server that waits simultaneously on two server sockets for +telnet connections. Everything it receives from the telnet clients is +broadcast to every other connected client. It tests the select function and +shows how to create a simple server whith LuaSocket. Just run broadcast.lua +and then open as many telnet connections as you want to ports 8080 and +8081. + Good luck, Diego. -- cgit v1.2.3-55-g6feb