add net.socket:dns api, some bug fix

This commit is contained in:
funshine 2014-10-16 22:20:05 +08:00
parent 3ca7f36c07
commit 12b407ff5f
3 changed files with 5 additions and 0 deletions

View File

@ -285,3 +285,8 @@ close()
描述关闭socket
dns(domain, function cb(net.socket, ip) )
描述获取domain的ip
domain字符串
function cb(net.socket, ip)回调函数。第一个参数为socket连接本身 第二个为获取的ip, 字符串形式。