diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-03-06 19:23:21 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-03-06 19:23:21 +0000 |
commit | 29226588da627587cacc40605b24c3eea01c2a8e (patch) | |
tree | 5972fcaffc1967dad60f36992891401b45ca4023 | |
parent | 27371883efefbafe485edd62f771e12beff903d1 (diff) | |
download | luasocket-29226588da627587cacc40605b24c3eea01c2a8e.tar.gz luasocket-29226588da627587cacc40605b24c3eea01c2a8e.tar.bz2 luasocket-29226588da627587cacc40605b24c3eea01c2a8e.zip |
Updated to remove use of global methods. Conforming to
LuaSocket release 1.2.1
-rw-r--r-- | samples/daytimeclnt.lua | 4 |
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 | |||
7 | host = toip(host) | 7 | host = toip(host) |
8 | udp = udpsocket() | 8 | udp = udpsocket() |
9 | print("Using host '" ..host.. "' and port " ..port.. "...") | 9 | print("Using host '" ..host.. "' and port " ..port.. "...") |
10 | err = sendto(udp, "anything", host, port) | 10 | err = udp:sendto("anything", host, port) |
11 | if err then print(err) exit() end | 11 | if err then print(err) exit() end |
12 | dgram, err = receive(udp) | 12 | dgram, err = udp:receive() |
13 | if not dgram then print(err) exit() end | 13 | if not dgram then print(err) exit() end |
14 | write(dgram) | 14 | write(dgram) |