Added broadcast.lua description.

This commit is contained in:
Diego Nehab 2001-03-12 20:02:21 +00:00
parent 98a7e91de5
commit 794418cd7b

View File

@ -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.