文件名称:dns:基于AmpPHP异步DNS解析
文件大小:28KB
文件格式:ZIP
更新时间:2024-02-22 20:13:50
dns php async amphp AmpPHP
域名系统 amphp/dns为提供异步DNS名称解析。 安装 composer require amphp/dns 例 <?php require __DIR__ . '/examples/_bootstrap.php' ; use Amp \ Dns ; use Amp \ Loop ; Loop :: run ( function () { $ githubIpv4 = yield Dns \resolve ( "github.com" , Dns \ Record :: A ); pretty_print_records ( "github.com" , $ githubIpv4 ); $ googleIpv4 = Amp \ Dns \resolve ( "google.com" , Dns \ Record :: A ); $ googleIpv6 = Amp \ Dns \resolve ( "google.com" , Dns \ Record :: AAAA ); $ firstGoogleResult = yield Amp
【文件预览】:
dns-master
----Makefile(847B)
----CONTRIBUTING.md(1KB)
----LICENSE(1KB)
----composer.json(2KB)
----.gitmodules(96B)
----README.md(1KB)
----.php_cs.dist(302B)
----appveyor.yml(1KB)
----lib()
--------ConfigLoader.php(115B)
--------Record.php(3KB)
--------TimeoutException.php(75B)
--------ConfigException.php(321B)
--------Internal()
--------functions.php(3KB)
--------Config.php(4KB)
--------UnixConfigLoader.php(6KB)
--------Resolver.php(1KB)
--------WindowsConfigLoader.php(3KB)
--------NoRecordException.php(76B)
--------BlockingFallbackResolver.php(1KB)
--------HostLoader.php(2KB)
--------Rfc1035StubResolver.php(20KB)
--------InvalidNameException.php(79B)
--------DnsException.php(69B)
----phpunit.xml.dist(773B)
----docs()
--------.gitignore(27B)
--------.shared()
--------index.md(4KB)
--------_config.yml(546B)
--------Gemfile(121B)