array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'eventdnsbase.construct.php', 1 => 'EventDnsBase::__construct', ), 'up' => array ( 0 => 'class.eventdnsbase.php', 1 => 'EventDnsBase', ), 'prev' => array ( 0 => 'eventdnsbase.clearsearch.php', 1 => 'EventDnsBase::clearSearch', ), 'next' => array ( 0 => 'eventdnsbase.countnameservers.php', 1 => 'EventDnsBase::countNameservers', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventdnsbase/construct.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL event >= 1.2.6-beta)
EventDnsBase::__construct — Constructs EventDnsBase object
Constructs EventDnsBase object.
base
Event base.
initialize
If initialize
is true
,
it attempts to use the underlying operating system defaults to configure
the DNS base senibly.
If it is false
, the DNS base is left unconfigured, with no nameservers or options set.
In the latter case the DNS base should be configured manually, e.g. with
EventDnsBase::parseResolvConf().
If initialize
is an integer, it must be one of the following flags:
Flag | 説明 |
---|---|
EventDnsBase::DISABLE_WHEN_INACTIVE |
Do not prevent the libevent event loop from exiting when we have no active DNS requests. |
EventDnsBase::INITIALIZE_NAMESERVERS |
Process the resolv.conf .
|
EventDnsBase::NAMESERVERS_NO_DEFAULT |
Do not add default nameserver if there are no nameservers in the resolv.conf .
|
If initialize
has a type other than
int|bool,
a TypeError is thrown.
If the value of initialize
is invalid,
a EventException is thrown.
バージョン | 説明 |
---|---|
PECL event 3.1.3 |
If initialize has a type other than
int|bool,
a TypeError is thrown.
|
PECL event 3.1.0RC1 |
The type of the initialize parameter has been changed from bool
to mixed. The value can be either bool (preserving the previous meaning)
or one of the following constants:
EventDnsBase::DISABLE_WHEN_INACTIVE ,
EventDnsBase::INITIALIZE_NAMESERVERS ,
or EventDnsBase::NAMESERVERS_NO_DEFAULT .
|