Lines Matching refs:qlen
41 void ares_send(ares_channel channel, const unsigned char *qbuf, int qlen,
49 if (qlen < HFIXEDSZ || qlen >= (1 << 16))
62 query->tcpbuf = malloc(qlen + 2);
84 /* Form the TCP query buffer by prepending qlen (as two
87 query->tcpbuf[0] = (unsigned char)((qlen >> 8) & 0xff);
88 query->tcpbuf[1] = (unsigned char)(qlen & 0xff);
89 memcpy(query->tcpbuf + 2, qbuf, qlen);
90 query->tcplen = qlen + 2;
94 query->qlen = qlen;
112 query->using_tcp = (channel->flags & ARES_FLAG_USEVC) || qlen > PACKETSZ;