Swoole\Async::dnsLookup
(PECL swoole >= 1.9.0)
Swoole\Async::dnsLookup — Async and non-blocking hostname to IP lookup.
说明
public static Swoole\Async::dnsLookup
(
string $hostname
,
callable $callback
) :
void
参数
-
hostname
-
The host name.
-
callback
-
callback
(
string $hostname
,
string $ip
) :
mixed
-
hostname
-
The host name.
-
IP
-
The IP address.
User Contributed Notes
There are no user contributed notes for this page.