Lines Matching refs:status
45 static void qcallback(void *arg, int status, int timeouts, unsigned char *abuf,
56 ares_status_t status;
60 status = (ares_status_t)ares_create_query(
63 if (status != ARES_SUCCESS) {
67 callback(arg, (int)status, 0, NULL, 0);
68 return status;
82 status = ares_send_ex(channel, qbuf, (size_t)qlen, qcallback, qquery, qid);
85 return status;
99 static void qcallback(void *arg, int status, int timeouts, unsigned char *abuf,
106 if (status != ARES_SUCCESS) {
107 qquery->callback(qquery->arg, status, timeouts, abuf, alen);
116 status = (ancount > 0) ? ARES_SUCCESS : ARES_ENODATA;
119 status = ARES_EFORMERR;
122 status = ARES_ESERVFAIL;
125 status = ARES_ENOTFOUND;
128 status = ARES_ENOTIMP;
131 status = ARES_EREFUSED;
136 qquery->callback(qquery->arg, status, timeouts, abuf, alen);