aboutsummaryrefslogtreecommitdiff
path: root/samples/daytimeclnt.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2003-03-28 21:08:50 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2003-03-28 21:08:50 +0000
commitf18d1b7cd0ec4708518ab5e18ea33b6eadca0301 (patch)
treee831c6b1957af47db1301675b52c0d2a2e315fa7 /samples/daytimeclnt.lua
parent307603b24dde69eac62d2cb52123488137520c9c (diff)
downloadluasocket-f18d1b7cd0ec4708518ab5e18ea33b6eadca0301.tar.gz
luasocket-f18d1b7cd0ec4708518ab5e18ea33b6eadca0301.tar.bz2
luasocket-f18d1b7cd0ec4708518ab5e18ea33b6eadca0301.zip
Closer to release...
Diffstat (limited to 'samples/daytimeclnt.lua')
-rw-r--r--samples/daytimeclnt.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/daytimeclnt.lua b/samples/daytimeclnt.lua
index 1107c6a..000dfd5 100644
--- a/samples/daytimeclnt.lua
+++ b/samples/daytimeclnt.lua
@@ -4,11 +4,11 @@ if arg then
4 host = arg[1] or host 4 host = arg[1] or host
5 port = arg[2] or port 5 port = arg[2] or port
6end 6end
7host = toip(host) 7host = socket.toip(host)
8udp = udpsocket() 8udp = socket.udp()
9print("Using host '" ..host.. "' and port " ..port.. "...") 9print("Using host '" ..host.. "' and port " ..port.. "...")
10err = udp:sendto("anything", host, port) 10err = udp:sendto("anything", host, port)
11if err then print(err) exit() end 11if err then print(err) exit() end
12dgram, err = udp:receive() 12dgram, err = udp:receive()
13if not dgram then print(err) exit() end 13if not dgram then print(err) exit() end
14write(dgram) 14io.write(dgram)