Lines Matching defs:trans
70 static isc_result_t dispatch_query(struct query_trans *trans);
151 struct query_trans *trans = event->ev_arg;
158 REQUIRE(trans->inuse == ISC_TRUE);
161 printf("answer[%2d]\n", trans->id);
177 dns_client_destroyrestrans(&trans->xid);
181 trans->inuse = ISC_FALSE;
182 dns_fixedname_invalidate(&trans->fixedname);
183 trans->qname = NULL;
186 result = dispatch_query(trans);
192 dns_client_cancelresolve(trans->xid);
200 dispatch_query(struct query_trans *trans) {
207 REQUIRE(trans != NULL);
208 REQUIRE(trans->inuse == ISC_FALSE);
209 REQUIRE(ISC_LIST_EMPTY(trans->answerlist));
222 dns_fixedname_init(&trans->fixedname);
223 trans->qname = dns_fixedname_name(&trans->fixedname);
224 result = dns_name_fromtext(trans->qname, &b, dns_rootname, 0, NULL);
229 result = dns_client_startresolve(client, trans->qname,
230 dns_rdataclass_in, trans->type, 0,
231 query_task, process_answer, trans,
232 &trans->xid);
236 trans->inuse = ISC_TRUE;
242 dns_fixedname_invalidate(&trans->fixedname);