|
ReactOS 0.4.16-dev-1946-g52006dd
|
#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.
Macros | |
| #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) |
Definition at line 42 of file transmit.c.
| #define MKQUERY_ADDW | ( | w | ) | (MKQUERY_ADDB(((w)>>8)&0x0ff), MKQUERY_ADDB((w)&0x0ff)) |
Definition at line 43 of file transmit.c.
Definition at line 41 of file transmit.c.
Definition at line 44 of file transmit.c.
| adns_status adns__mkquery | ( | adns_state | ads, |
| vbuf * | vb, | ||
| int * | id_r, | ||
| const char * | owner, | ||
| int | ol, | ||
| const typeinfo * | typei, | ||
| adns_queryflags | flags | ||
| ) |
Definition at line 81 of file transmit.c.
Referenced by query_simple().
| 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 | ||
| ) |
Definition at line 138 of file transmit.c.
Referenced by adns__procdgram(), pa_ptr(), and pap_hostaddr().
| void adns__query_send | ( | adns_query | qu, |
| struct timeval | now | ||
| ) |
Definition at line 232 of file transmit.c.
Referenced by adns__procdgram(), query_submit(), and timeouts_queue().
| void adns__querysend_tcp | ( | adns_query | qu, |
| struct timeval | now | ||
| ) |
Definition at line 168 of file transmit.c.
Referenced by query_usetcp(), and tcp_connected().
|
static |
Definition at line 69 of file transmit.c.
Referenced by adns__mkquery(), and adns__mkquery_frdgram().
|
static |
Definition at line 46 of file transmit.c.
Referenced by adns__mkquery(), and adns__mkquery_frdgram().
|
static |
Definition at line 223 of file transmit.c.
Referenced by adns__query_send().