aboutsummaryrefslogtreecommitdiff
path: root/samples/daytimeclnt.lua
diff options
context:
space:
mode:
Diffstat (limited to 'samples/daytimeclnt.lua')
-rw-r--r--samples/daytimeclnt.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/daytimeclnt.lua b/samples/daytimeclnt.lua
index 94e03d3..1107c6a 100644
--- a/samples/daytimeclnt.lua
+++ b/samples/daytimeclnt.lua
@@ -7,8 +7,8 @@ end
7host = toip(host) 7host = toip(host)
8udp = udpsocket() 8udp = udpsocket()
9print("Using host '" ..host.. "' and port " ..port.. "...") 9print("Using host '" ..host.. "' and port " ..port.. "...")
10err = sendto(udp, "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 = receive(udp) 12dgram, err = udp:receive()
13if not dgram then print(err) exit() end 13if not dgram then print(err) exit() end
14write(dgram) 14write(dgram)