Swoole\Async
PHP Manual

Swoole\Async::dnsLookup

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

Swoole\Async::dnsLookupAsync and non-blocking hostname to IP lookup.

说明

public static void Swoole\Async::dnsLookup ( string $hostname , callable $callback )

Warning

本函数还未编写文档,仅有参数列表。

参数

hostname

The host name.

callback
mixed callback ( string $hostname , string $ip )
hostname

The host name.

IP

The IP address.


Swoole\Async
PHP Manual