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 /etc | |
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 'etc')
-rw-r--r-- | etc/dict.lua | 2 | ||||
-rw-r--r-- | etc/tftp.lua | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/etc/dict.lua b/etc/dict.lua index 9926538..933c1c8 100644 --- a/etc/dict.lua +++ b/etc/dict.lua | |||
@@ -32,7 +32,7 @@ end | |||
32 | function dict_open() | 32 | function dict_open() |
33 | local sock, err = socket.connect("dict.org", 2628) | 33 | local sock, err = socket.connect("dict.org", 2628) |
34 | if not sock then return nil, err end | 34 | if not sock then return nil, err end |
35 | sock:timeout(10) | 35 | sock:settimeout(10) |
36 | local code, par = get_status(sock, 220) | 36 | local code, par = get_status(sock, 220) |
37 | if code then return nil, code end | 37 | if code then return nil, code end |
38 | return sock | 38 | return sock |
diff --git a/etc/tftp.lua b/etc/tftp.lua index d1b5594..4113034 100644 --- a/etc/tftp.lua +++ b/etc/tftp.lua | |||
@@ -82,8 +82,8 @@ function Public.get(url) | |||
82 | local udp, err = socket.udp() | 82 | local udp, err = socket.udp() |
83 | if not udp then return nil, err end | 83 | if not udp then return nil, err end |
84 | -- convert from name to ip if needed | 84 | -- convert from name to ip if needed |
85 | parsed.host = socket.toip(parsed.host) | 85 | parsed.host = socket.dns.toip(parsed.host) |
86 | udp:timeout(1) | 86 | udp:settimeout(1) |
87 | -- first packet gives data host/port to be used for data transfers | 87 | -- first packet gives data host/port to be used for data transfers |
88 | retries = 0 | 88 | retries = 0 |
89 | repeat | 89 | repeat |