diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-08-16 00:06:04 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-08-16 00:06:04 +0000 |
| commit | c51d4acf1c2a8675a3bb043e799ff4390cef47d6 (patch) | |
| tree | 345b71aa70b50c964a58980461e147a260fa6e0b /samples/daytimeclnt.lua | |
| parent | 3099704affa1fda195eb8f3934f6c1f18bf1f706 (diff) | |
| download | luasocket-c51d4acf1c2a8675a3bb043e799ff4390cef47d6.tar.gz luasocket-c51d4acf1c2a8675a3bb043e799ff4390cef47d6.tar.bz2 luasocket-c51d4acf1c2a8675a3bb043e799ff4390cef47d6.zip | |
Adjusted a few inconsistencies with the manual.
Diffstat (limited to 'samples/daytimeclnt.lua')
| -rw-r--r-- | samples/daytimeclnt.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/daytimeclnt.lua b/samples/daytimeclnt.lua index 5064fff..29abe17 100644 --- a/samples/daytimeclnt.lua +++ b/samples/daytimeclnt.lua | |||
| @@ -10,7 +10,7 @@ if arg then | |||
| 10 | host = arg[1] or host | 10 | host = arg[1] or host |
| 11 | port = arg[2] or port | 11 | port = arg[2] or port |
| 12 | end | 12 | end |
| 13 | host = socket.toip(host) | 13 | host = socket.dns.toip(host) |
| 14 | udp = socket.udp() | 14 | udp = socket.udp() |
| 15 | print("Using host '" ..host.. "' and port " ..port.. "...") | 15 | print("Using host '" ..host.. "' and port " ..port.. "...") |
| 16 | udp:setpeername(host, port) | 16 | udp:setpeername(host, port) |
