From c51d4acf1c2a8675a3bb043e799ff4390cef47d6 Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Sat, 16 Aug 2003 00:06:04 +0000 Subject: Adjusted a few inconsistencies with the manual. --- etc/dict.lua | 2 +- etc/tftp.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'etc') 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 function dict_open() local sock, err = socket.connect("dict.org", 2628) if not sock then return nil, err end - sock:timeout(10) + sock:settimeout(10) local code, par = get_status(sock, 220) if code then return nil, code end 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) local udp, err = socket.udp() if not udp then return nil, err end -- convert from name to ip if needed - parsed.host = socket.toip(parsed.host) - udp:timeout(1) + parsed.host = socket.dns.toip(parsed.host) + udp:settimeout(1) -- first packet gives data host/port to be used for data transfers retries = 0 repeat -- cgit v1.2.3-55-g6feb