aboutsummaryrefslogtreecommitdiff
path: root/samples/echosrvr.lua
diff options
context:
space:
mode:
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