Lines Matching defs:client

37 typedef struct client client_t;
38 struct client {
82 client_t *client;
84 client = isc_mempool_get(cmp);
85 INSIST(client != NULL);
86 dns_name_init(&client->name, NULL);
87 ISC_LINK_INIT(client, link);
88 client->find = NULL;
90 return (client);
95 client_t *client;
98 client = *c;
100 INSIST(client != NULL);
101 dns_name_free(&client->name, mctx);
102 INSIST(!ISC_LINK_LINKED(client, link));
103 INSIST(client->find == NULL);
105 isc_mempool_put(cmp, client);
120 client_t *client;
122 client = ev->ev_arg;
123 INSIST(client->find == ev->ev_sender);
125 printf("NAME %s:\n\tTask %p got event %p type %08x from %p, client %p\n\terr4: %s err6: %s\n",
126 client->target,
127 task, ev, ev->ev_type, client->find, client,
128 isc_result_totext(client->find->result_v4),
129 isc_result_totext(client->find->result_v6));
136 dns_adb_dumpfind(client->find, stderr);
137 dns_adb_destroyfind(&client->find);
139 ISC_LIST_UNLINK(clients, client, link);
140 free_client(&client);
234 client_t *client;
241 client = new_client();
249 result = dns_name_dup(&name, mctx, &client->name);
258 result = dns_adb_createfind(adb, t2, lookup_callback, client,
259 &client->name, dns_rootname, 0, options,
260 now, NULL, view->dstport, &client->find);
263 dns_adb_dumpfind(client->find, stderr);
265 if ((client->find->options & DNS_ADBFIND_WANTEVENT) != 0) {
266 client->target = target;
267 ISC_LIST_APPEND(clients, client, link);
270 target, isc_result_totext(client->find->result_v4),
271 isc_result_totext(client->find->result_v6));
273 dns_adb_destroyfind(&client->find);
274 free_client(&client);
354 * Lock the entire client list here. This will cause all events