Software /
code /
prosody
Comparison
net/dns.lua @ 3328:5ac4fbbfb74d
net.dns: Add dns.settimeout() to set the timeout for the default resolver
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 05 Jul 2010 12:13:55 +0100 |
parent | 3327:b447682f2a8d |
child | 3360:6c07b64e972c |
comparison
equal
deleted
inserted
replaced
3327:b447682f2a8d | 3328:5ac4fbbfb74d |
---|---|
991 | 991 |
992 function dns.cancel(...) -- - - - - - - - - - - - - - - - - - - - - - cancel | 992 function dns.cancel(...) -- - - - - - - - - - - - - - - - - - - - - - cancel |
993 return _resolver:cancel(...); | 993 return _resolver:cancel(...); |
994 end | 994 end |
995 | 995 |
996 function dns.settimeout(...) | |
997 return _resolver:settimeout(...); | |
998 end | |
999 | |
996 function dns.socket_wrapper_set(...) -- - - - - - - - - socket_wrapper_set | 1000 function dns.socket_wrapper_set(...) -- - - - - - - - - socket_wrapper_set |
997 return _resolver:socket_wrapper_set(...); | 1001 return _resolver:socket_wrapper_set(...); |
998 end | 1002 end |
999 | 1003 |
1000 return dns; | 1004 return dns; |