Comparison

net/dns.lua @ 5566:74ae3e7e8779

net.dns: Add nicer API to cached records
author Kim Alvefur <zash@zash.se>
date Tue, 07 May 2013 16:51:25 +0200
parent 5340:51c9959c21c0
child 5705:6eebd5808fbc
child 5730:411e9e7d8035
comparison
equal deleted inserted replaced
5565:6dd806829226 5566:74ae3e7e8779
1070 1070
1071 function dns.settimeout(...) 1071 function dns.settimeout(...)
1072 return _resolver:settimeout(...); 1072 return _resolver:settimeout(...);
1073 end 1073 end
1074 1074
1075 function dns.cache()
1076 return _resolver.cache;
1077 end
1078
1075 function dns.socket_wrapper_set(...) -- - - - - - - - - socket_wrapper_set 1079 function dns.socket_wrapper_set(...) -- - - - - - - - - socket_wrapper_set
1076 return _resolver:socket_wrapper_set(...); 1080 return _resolver:socket_wrapper_set(...);
1077 end 1081 end
1078 1082
1079 return dns; 1083 return dns;