|
The EventDnsBase classIntroductionRepresents Libevent's DNS base structure. Used to resolve DNS asyncronously, parse configuration files like resolv.conf etc. Class synopsis
EventDnsBase
final
class EventDnsBase
{
/* Constants */
const
int
EventDnsBase::OPTION_SEARCH = 1;
const
int
EventDnsBase::OPTION_NAMESERVERS = 2;
const
int
EventDnsBase::OPTION_MISC = 4;
const
int
EventDnsBase::OPTION_HOSTSFILE = 8;
const
int
EventDnsBase::OPTIONS_ALL = 15;
const
int
EventDnsBase::DISABLE_WHEN_INACTIVE = 32768;
const
int
EventDnsBase::INITIALIZE_NAMESERVERS = 1;
const
int
EventDnsBase::NAMESERVERS_NO_DEFAULT = 65536;
/* Methods */
public
__construct(
EventBase
$base
,
intbool
$initialize
)public
bool addNameserverIp(
string
$ip
)public
void addSearch(
string
$domain
)public
void clearSearch()
public
int countNameservers()
public
bool loadHosts(
string
$hosts
)public
bool parseResolvConf(
int
$flags
,
string
$filename
)public
bool setOption(
string
$option
,
string
$value
)public
bool setSearchNdots(
int
}$ndots
)Predefined Constants
|