sfml.js
Preparing search index...
Dns
resolve
Function resolve
resolve
(
hostname
:
string
,
servers
?:
readonly
IpAddress
[]
,
timeout
?:
undefined
|
ReadonlyValue
<
Time
>
,
)
:
Promise
<
undefined
|
IpAddress
[]
>
异步解析 IPv4/IPv6 地址,失败返回 undefined。 servers 为空时使用系统解析器,timeout 不限制该路径;指定 DNS 时默认超时 1 秒。
Parameters
hostname
:
string
servers
:
readonly
IpAddress
[]
= []
timeout
:
undefined
|
ReadonlyValue
<
Time
>
= ...
Returns
Promise
<
undefined
|
IpAddress
[]
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
sfml.js
Loading...
异步解析 IPv4/IPv6 地址,失败返回 undefined。 servers 为空时使用系统解析器,timeout 不限制该路径;指定 DNS 时默认超时 1 秒。