PHP Class PHPDaemon\Clients\DNS\Pool

Author: Vasily Zorin ([email protected])
Inheritance: extends PHPDaemon\Network\Client
Mostra 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_oe static_oe property

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

$hosts public_oe property

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

$nameServers public_oe property

resolve.conf file parsed
public $nameServers

$preloading public_oe property

Preloading ComplexJob
public $preloading

$resolveCache public_oe property

Resolve cache
public $resolveCache

$type public_oe static_oe property

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