Lines Matching refs:qbuf
51 ares_status_t ares_send_ex(ares_channel_t *channel, const unsigned char *qbuf,
74 status = ares_qcache_fetch(channel, &now, qbuf, qlen, &abuf, &alen);
92 query->qbuf = ares_malloc(qlen);
93 if (!query->qbuf) {
104 query->qbuf[0] = (unsigned char)((id >> 8) & 0xFF);
105 query->qbuf[1] = (unsigned char)(id & 0xFF);
106 memcpy(query->qbuf + 2, qbuf + 2, qlen - 2);
153 void ares_send(ares_channel_t *channel, const unsigned char *qbuf, int qlen,
162 ares_send_ex(channel, qbuf, (size_t)qlen, callback, arg, NULL);