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

Method run

lib_acl_cpp/src/stdlib/dns_service.cpp:35–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 ~dns_request(void) {}
34
35 virtual void run(ipc_client* ipc)
36 {
37 ACL_DNS_DB* db = acl_gethostbyname(domain_.c_str(), NULL);
38 data_.res = NEW dns_res(domain_.c_str());
39
40 if (db != NULL) {
41 ACL_ITER iter;
42 acl_foreach(iter, db) {
43 ACL_HOSTNAME* hn = (ACL_HOSTNAME*) iter.data;
44 data_.res->ips_.push_back(hn->ip);
45 }
46
47 acl_netdb_free(db);
48 }
49
50 // �����̷߳��ͽ��
51 ipc->send_message(IPC_RES, &data_, sizeof(data_));
52
53 // ���ٱ��������Ϊ���Ƕ�̬�����
54 delete this;
55 }
56
57#ifdef ACL_WINDOWS
58

Callers

nothing calls this directly

Calls 4

acl_gethostbynameFunction · 0.85
acl_netdb_freeFunction · 0.85
send_messageMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected