diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-11-22 08:33:29 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-11-22 08:33:29 +0000 |
commit | d55a5826e81136a9ecf65c4cd407152a56684dc2 (patch) | |
tree | 109ad44c75cee890ad5e98583e12b15b5e65a18e /samples/echosrvr.lua | |
parent | a2b780bf7a78c66d54a248fa99b5fc862c12a127 (diff) | |
download | luasocket-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.lua | 6 |
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) | |||
20 | print("Waiting packets on " .. ip .. ":" .. port .. "...") | 20 | print("Waiting packets on " .. ip .. ":" .. port .. "...") |
21 | while 1 do | 21 | while 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 |
29 | end | 29 | end |