mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 20:38:22 +01:00
Added broadcast.lua description.
This commit is contained in:
parent
98a7e91de5
commit
794418cd7b
@ -31,5 +31,14 @@ servers as well.
|
|||||||
This module implements file retrieval by the TFTP protocol. Its main use
|
This module implements file retrieval by the TFTP protocol. Its main use
|
||||||
is to test the UDP code, but someone might find it usefull.
|
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,
|
Good luck,
|
||||||
Diego.
|
Diego.
|
||||||
|
Loading…
Reference in New Issue
Block a user