From 29226588da627587cacc40605b24c3eea01c2a8e Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Tue, 6 Mar 2001 19:23:21 +0000 Subject: [PATCH] Updated to remove use of global methods. Conforming to LuaSocket release 1.2.1 --- samples/daytimeclnt.lua | 4 ++-- 1 file 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 host = toip(host) udp = udpsocket() print("Using host '" ..host.. "' and port " ..port.. "...") -err = sendto(udp, "anything", host, port) +err = udp:sendto("anything", host, port) if err then print(err) exit() end -dgram, err = receive(udp) +dgram, err = udp:receive() if not dgram then print(err) exit() end write(dgram)