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

Method on_result

lib_acl_cpp/src/stdlib/dns_service.cpp:199–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199void dns_service::on_result(const dns_res& res)
200{
201 for (std::list<dns_result_callback*>::iterator it= callbacks_.begin();
202 it != callbacks_.end();) {
203
204 if ((*it)->get_domain() == res.domain_.c_str()) {
205 // ֪ͨ�������Ľ������
206 (*it)->on_result((*it)->get_domain(), res);
207 (*it)->destroy(); // ���������������ٹ���
208 it = callbacks_.erase(it);
209 } else {
210 ++it;
211 }
212 }
213}
214
215} // namespace acl

Callers 1

on_messageMethod · 0.45

Calls 5

beginMethod · 0.80
endMethod · 0.45
get_domainMethod · 0.45
c_strMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected