#include <errno.h>
#include <sys/types.h>
#include <sys/uio.h>
#include "internal.h"
#include "tvarith.h"
Go to the source code of this file.
Defines |
| #define | MKQUERY_START(vb) (rqp= (vb)->buf+(vb)->used) |
| #define | MKQUERY_ADDB(b) *rqp++= (b) |
| #define | MKQUERY_ADDW(w) (MKQUERY_ADDB(((w)>>8)&0x0ff), MKQUERY_ADDB((w)&0x0ff)) |
| #define | MKQUERY_STOP(vb) ((vb)->used= rqp-(vb)->buf) |
Functions |
| static adns_status | mkquery_header (adns_state ads, vbuf *vb, int *id_r, int qdlen) |
| static adns_status | mkquery_footer (vbuf *vb, adns_rrtype type) |
| adns_status | adns__mkquery (adns_state ads, vbuf *vb, int *id_r, const char *owner, int ol, const typeinfo *typei, adns_queryflags flags) |
| adns_status | adns__mkquery_frdgram (adns_state ads, vbuf *vb, int *id_r, const byte *qd_dgram, int qd_dglen, int qd_begin, adns_rrtype type, adns_queryflags flags) |
| void | adns__querysend_tcp (adns_query qu, struct timeval now) |
| static void | query_usetcp (adns_query qu, struct timeval now) |
| void | adns__query_send (adns_query qu, struct timeval now) |