MCPcopy Create free account
hub / github.com/acl-dev/acl / dns_list

Method dns_list

lib_acl_cpp/src/stream/aio_handle.cpp:281–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void aio_handle::dns_list(std::vector<std::pair<string, unsigned short> >& out)
282{
283 ACL_DNS* dns = (ACL_DNS*) acl_aio_dns(aio_);
284 if (dns == NULL) {
285 return;
286 }
287 ACL_ITER iter;
288 acl_foreach(iter, dns->dns_list) {
289 ACL_DNS_ADDR* addr = (ACL_DNS_ADDR*) iter.data;
290 out.push_back(std::make_pair(addr->ip, addr->port));
291 }
292}
293
294void aio_handle::increase()
295{

Callers

nothing calls this directly

Calls 3

acl_aio_dnsFunction · 0.85
acl_foreachFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected