Commit 12b407ff authored by funshine's avatar funshine
Browse files

add net.socket:dns api, some bug fix

parent 3ca7f36c
...@@ -285,3 +285,8 @@ close() ...@@ -285,3 +285,8 @@ close()
描述:关闭socket 描述:关闭socket
dns(domain, function cb(net.socket, ip) )
描述:获取domain的ip
domain:字符串
function cb(net.socket, ip):回调函数。第一个参数为socket连接本身, 第二个为获取的ip, 字符串形式。
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment