PHP Class PHPDaemon\Clients\DNS\Pool

Author: Vasily Zorin ([email protected])
Inheritance: extends PHPDaemon\Network\Client
Show file Open project: kakserpom/phpdaemon Class Usage Examples

Public Properties

Property Type Description
$class Classes [code => "class"]
$hosts Hosts file parsed [hostname => [addr, ...], ...]
$nameServers resolve.conf file parsed
$preloading Preloading ComplexJob
$resolveCache Resolve cache
$type Record Types [code => "name", ...]

Public Methods

Method Description
applyConfig ( ) : void Applies config
get ( string $hostname, callable $cb, boolean $noncache = false, array $nameServers = [], string $proto = 'udp' ) : void Gets the host information
resolve ( string $hostname, callable $cb, boolean $noncache = false, array $nameServers = [] ) : void Resolves the host

Protected Methods

Method Description
getConfigDefaults ( ) : array Setting default config options Overriden from NetworkClient::getConfigDefaults
init ( ) Constructor

Method Details

applyConfig() public method

Applies config
public applyConfig ( ) : void
return void

get() public method

Gets the host information
public get ( string $hostname, callable $cb, boolean $noncache = false, array $nameServers = [], string $proto = 'udp' ) : void
$hostname string Hostname
$cb callable Callback
$noncache boolean Noncache?
$nameServers array
$proto string
return void

getConfigDefaults() protected method

Setting default config options Overriden from NetworkClient::getConfigDefaults
protected getConfigDefaults ( ) : array
return array

init() protected method

Constructor
protected init ( )

resolve() public method

Resolves the host
public resolve ( string $hostname, callable $cb, boolean $noncache = false, array $nameServers = [] ) : void
$hostname string Hostname
$cb callable Callback
$noncache boolean Noncache?
$nameServers array
return void

Property Details

$class public static property

Classes [code => "class"]
public static $class

$hosts public property

Hosts file parsed [hostname => [addr, ...], ...]
public $hosts

$nameServers public property

resolve.conf file parsed
public $nameServers

$preloading public property

Preloading ComplexJob
public $preloading

$resolveCache public property

Resolve cache
public $resolveCache

$type public static property

Record Types [code => "name", ...]
public static $type