GoLang Swoole\Async::dnsLookup

request it (323)
GoLang replacement for PHP's Swoole\Async::dnsLookup [edit | history]



Do you know a GoLang replacement for PHP's Swoole\Async::dnsLookup? Write it!

PHP Swoole\Async::dnsLookup

PHP original manual for Swoole\Async::dnsLookup [ show | php.net ]

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.

Description

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

Warning

This function is currently not documented; only its argument list is available.

Parameters

hostname

The host name.

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

The host name.

IP

The IP address.