swoole_async_dns_lookup
(PECL swoole >= 1.9.0)
swoole_async_dns_lookup — Async and non-blocking hostname to IP lookup
Parameters
-
hostname
-
The host name.
-
callback
-
-
hostname
-
The host name.
-
IP
-
The IP address.
-
Return Values
Returns true
on success or false
on failure.