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

Method on_message

lib_acl_cpp/src/stdlib/dns_service.cpp:103–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 ~dns_ipc(void) {}
102
103 virtual void on_message(int nMsg acl_unused,
104 void* data, int dlen acl_unused)
105 {
106 if (nMsg != IPC_RES) {
107 logger_error("invalid nMsg(%d)", nMsg);
108 this->close();
109 return;
110 }
111
112 DNS_IPC_DATA* dat = (DNS_IPC_DATA*) data;
113 dns_res* res = dat->res;
114
115 server_->on_result(*res);
116 delete res;
117 }
118protected:
119 virtual void on_close(void)
120 {

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
on_resultMethod · 0.45

Tested by

no test coverage detected