aboutsummaryrefslogtreecommitdiff
path: root/samples/echosrvr.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2005-11-22 08:33:29 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2005-11-22 08:33:29 +0000
commitd55a5826e81136a9ecf65c4cd407152a56684dc2 (patch)
tree109ad44c75cee890ad5e98583e12b15b5e65a18e /samples/echosrvr.lua
parenta2b780bf7a78c66d54a248fa99b5fc862c12a127 (diff)
downloadluasocket-d55a5826e81136a9ecf65c4cd407152a56684dc2.tar.gz
luasocket-d55a5826e81136a9ecf65c4cd407152a56684dc2.tar.bz2
luasocket-d55a5826e81136a9ecf65c4cd407152a56684dc2.zip
Few tweaks in installation, some missing files, etc.
Diffstat (limited to 'samples/echosrvr.lua')
-rw-r--r--samples/echosrvr.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/echosrvr.lua b/samples/echosrvr.lua
index d4449e5..8d39ed9 100644
--- a/samples/echosrvr.lua
+++ b/samples/echosrvr.lua
@@ -20,10 +20,10 @@ assert(ip, port)
20print("Waiting packets on " .. ip .. ":" .. port .. "...") 20print("Waiting packets on " .. ip .. ":" .. port .. "...")
21while 1 do 21while 1 do
22 dgram, ip, port = udp:receivefrom() 22 dgram, ip, port = udp:receivefrom()
23 if dgram then 23 if dgram then
24 print("Echoing '" .. dgram .. "' to " .. ip .. ":" .. port) 24 print("Echoing '" .. dgram .. "' to " .. ip .. ":" .. port)
25 udp:sendto(dgram, ip, port) 25 udp:sendto(dgram, ip, port)
26 else 26 else
27 print(ip) 27 print(ip)
28 end 28 end
29end 29end