Lines Matching defs:info
43 bool HostDnsInformation::equals(const HostDnsInformation &info, bool fDNSOrderIgnore) const
48 std::set<std::string> r(info.servers.begin(), info.servers.end());
51 && (domain == info.domain)
52 && (searchList == info.searchList); // XXX: also ignore order?
56 return (servers == info.servers)
57 && (domain == info.domain)
58 && (searchList == info.searchList);
81 HostDnsInformation info;
93 : info(NULL)
101 if (info)
103 delete info;
104 info = NULL;
108 HostDnsInformation *info;
186 return m->info;
189 void HostDnsMonitor::setInfo(const HostDnsInformation &info)
195 if (info.equals(m->info))
199 dumpHostDnsInformation(m->info);
201 dumpHostDnsInformation(info);
203 bool fIgnore = m->fDNSOrderIgnore && info.equals(m->info, m->fDNSOrderIgnore);
204 m->info = info;
312 AssertReturn(m && m->info, E_FAIL);
319 dumpHostDnsStrVector("name server", m->info->servers);
321 detachVectorOfString(m->info->servers, aNameServers);
328 AssertReturn(m && m->info, E_FAIL);
335 m->info->domain.empty() ? "no domain set" : m->info->domain.c_str()));
337 *pDomainName = m->info->domain.c_str();
344 AssertReturn(m && m->info, E_FAIL);
351 dumpHostDnsStrVector("search string", m->info->searchList);
353 detachVectorOfString(m->info->searchList, aSearchStrings);
371 HostDnsInformation *info = new HostDnsInformation(m->monitor->getInfo());
372 HostDnsInformation *old = m->info;
374 m->info = info;
384 static void dumpHostDnsInformation(const HostDnsInformation& info)
386 dumpHostDnsStrVector("server", info.servers);
387 dumpHostDnsStrVector("search string", info.searchList);
389 if (!info.domain.empty())
390 LogRel((" domain: %s\n", info.domain.c_str()));