1\section{dns\+\_\+transmit Struct Reference}
2\label{structdns__transmit}\index{dns\+\_\+transmit@{dns\+\_\+transmit}}
3
4
5{\ttfamily \#include $<$dns.\+h$>$}
6
7\subsection*{Data Fields}
8\begin{DoxyCompactItemize}
9\item
10char $\ast$ \hyperlink{structdns__transmit_accd430ba2988b14da4b0f82d812d8b3e}{query}
11\item
12unsigned int \hyperlink{structdns__transmit_ad2f5abf373e223760d266bde2d8d9b3c}{querylen}
13\item
14char $\ast$ \hyperlink{structdns__transmit_adf70b88f732e18faefc3cecf7b5d22e6}{packet}
15\item
16unsigned int \hyperlink{structdns__transmit_aaf60a2e44ef46cbc69794117f84bd75b}{packetlen}
17\item
18int \hyperlink{structdns__transmit_a4300d121dd456367b17fc9b340f445f9}{s1}
19\item
20int \hyperlink{structdns__transmit_a297c2417beaa8d4ec327a7df73f32a60}{tcpstate}
21\item
22unsigned int \hyperlink{structdns__transmit_a833c92236dc2624f378db02176425e5c}{udploop}
23\item
24unsigned int \hyperlink{structdns__transmit_a0d047daaaae348a3bcc242109c91c13b}{curserver}
25\item
26struct timeval \hyperlink{structdns__transmit_a2d302a21d96aa58e176bea720ff0e354}{deadline}
27\item
28unsigned int \hyperlink{structdns__transmit_a078b8fd5b3d559888fe13bbdd989357e}{pos}
29\item
30const \hyperlink{structipv4addr}{ipv4addr} $\ast$ \hyperlink{structdns__transmit_a7a0980e55362102bcf69b4b4e1937eb7}{servers}
31\item
32\hyperlink{structipv4addr}{ipv4addr} \hyperlink{structdns__transmit_aff792cd71c9edf4cd9265f16a9687fdc}{localip}
33\item
34uint16 \hyperlink{structdns__transmit_ad78fedb9f7df09285c4e612dcf49a2f3}{qtype}
35\end{DoxyCompactItemize}
36
37
38\subsection{Detailed Description}
39D\+NS transmission record
40
41\subsection{Field Documentation}
42\mbox{\label{structdns__transmit_a0d047daaaae348a3bcc242109c91c13b}}
43\index{dns\+\_\+transmit@{dns\+\_\+transmit}!curserver@{curserver}}
44\index{curserver@{curserver}!dns\+\_\+transmit@{dns\+\_\+transmit}}
45\subsubsection{\texorpdfstring{curserver}{curserver}}
46{\footnotesize\ttfamily unsigned int dns\+\_\+transmit\+::curserver}
47
48Index of the server we are currently sending to.
49
50Referenced by dns\+\_\+transmit\+\_\+free().
51
52\mbox{\label{structdns__transmit_a2d302a21d96aa58e176bea720ff0e354}}
53\index{dns\+\_\+transmit@{dns\+\_\+transmit}!deadline@{deadline}}
54\index{deadline@{deadline}!dns\+\_\+transmit@{dns\+\_\+transmit}}
55\subsubsection{\texorpdfstring{deadline}{deadline}}
56{\footnotesize\ttfamily struct timeval dns\+\_\+transmit\+::deadline}
57
58Deadline for considering a request timed out.
59
60Referenced by dns\+\_\+transmit\+\_\+free(), dns\+\_\+transmit\+\_\+get(), and dns\+\_\+transmit\+\_\+io().
61
62\mbox{\label{structdns__transmit_aff792cd71c9edf4cd9265f16a9687fdc}}
63\index{dns\+\_\+transmit@{dns\+\_\+transmit}!localip@{localip}}
64\index{localip@{localip}!dns\+\_\+transmit@{dns\+\_\+transmit}}
65\subsubsection{\texorpdfstring{localip}{localip}}
66{\footnotesize\ttfamily \hyperlink{structipv4addr}{ipv4addr} dns\+\_\+transmit\+::localip}
67
68The local IP address to transmit with.
69
70Referenced by dns\+\_\+transmit\+\_\+free(), and dns\+\_\+transmit\+\_\+start().
71
72\mbox{\label{structdns__transmit_adf70b88f732e18faefc3cecf7b5d22e6}}
73\index{dns\+\_\+transmit@{dns\+\_\+transmit}!packet@{packet}}
74\index{packet@{packet}!dns\+\_\+transmit@{dns\+\_\+transmit}}
75\subsubsection{\texorpdfstring{packet}{packet}}
76{\footnotesize\ttfamily char$\ast$ dns\+\_\+transmit\+::packet}
77
78The received response packet. This will either be {\ttfamily N\+U\+LL} or dynamically allocated.
79
80Referenced by dns\+\_\+ip4\+\_\+r(), dns\+\_\+ip6\+\_\+r(), dns\+\_\+mx\+\_\+r(), dns\+\_\+name4\+\_\+r(), dns\+\_\+name6\+\_\+r(), dns\+\_\+transmit\+\_\+get(), and dns\+\_\+txt\+\_\+r().
81
82\mbox{\label{structdns__transmit_aaf60a2e44ef46cbc69794117f84bd75b}}
83\index{dns\+\_\+transmit@{dns\+\_\+transmit}!packetlen@{packetlen}}
84\index{packetlen@{packetlen}!dns\+\_\+transmit@{dns\+\_\+transmit}}
85\subsubsection{\texorpdfstring{packetlen}{packetlen}}
86{\footnotesize\ttfamily unsigned int dns\+\_\+transmit\+::packetlen}
87
88The length of the received response packet.
89
90Referenced by dns\+\_\+ip4\+\_\+r(), dns\+\_\+ip6\+\_\+r(), dns\+\_\+mx\+\_\+r(), dns\+\_\+name4\+\_\+r(), dns\+\_\+name6\+\_\+r(), dns\+\_\+transmit\+\_\+get(), and dns\+\_\+txt\+\_\+r().
91
92\mbox{\label{structdns__transmit_a078b8fd5b3d559888fe13bbdd989357e}}
93\index{dns\+\_\+transmit@{dns\+\_\+transmit}!pos@{pos}}
94\index{pos@{pos}!dns\+\_\+transmit@{dns\+\_\+transmit}}
95\subsubsection{\texorpdfstring{pos}{pos}}
96{\footnotesize\ttfamily unsigned int dns\+\_\+transmit\+::pos}
97
98Current sending/receiving position within the buffer, for T\+CP transmissions.
99
100Referenced by dns\+\_\+transmit\+\_\+get().
101
102\mbox{\label{structdns__transmit_ad78fedb9f7df09285c4e612dcf49a2f3}}
103\index{dns\+\_\+transmit@{dns\+\_\+transmit}!qtype@{qtype}}
104\index{qtype@{qtype}!dns\+\_\+transmit@{dns\+\_\+transmit}}
105\subsubsection{\texorpdfstring{qtype}{qtype}}
106{\footnotesize\ttfamily uint16 dns\+\_\+transmit\+::qtype}
107
108The requested query type.
109
110Referenced by dns\+\_\+transmit\+\_\+start().
111
112\mbox{\label{structdns__transmit_accd430ba2988b14da4b0f82d812d8b3e}}
113\index{dns\+\_\+transmit@{dns\+\_\+transmit}!query@{query}}
114\index{query@{query}!dns\+\_\+transmit@{dns\+\_\+transmit}}
115\subsubsection{\texorpdfstring{query}{query}}
116{\footnotesize\ttfamily char$\ast$ dns\+\_\+transmit\+::query}
117
118The transmitted query packet. This will either be {\ttfamily N\+U\+LL} or dynamically allocated.
119
120Referenced by dns\+\_\+transmit\+\_\+free(), dns\+\_\+transmit\+\_\+get(), and dns\+\_\+transmit\+\_\+start().
121
122\mbox{\label{structdns__transmit_ad2f5abf373e223760d266bde2d8d9b3c}}
123\index{dns\+\_\+transmit@{dns\+\_\+transmit}!querylen@{querylen}}
124\index{querylen@{querylen}!dns\+\_\+transmit@{dns\+\_\+transmit}}
125\subsubsection{\texorpdfstring{querylen}{querylen}}
126{\footnotesize\ttfamily unsigned int dns\+\_\+transmit\+::querylen}
127
128The length of the transmitted query packet.
129
130Referenced by dns\+\_\+transmit\+\_\+free(), dns\+\_\+transmit\+\_\+get(), and dns\+\_\+transmit\+\_\+start().
131
132\mbox{\label{structdns__transmit_a4300d121dd456367b17fc9b340f445f9}}
133\index{dns\+\_\+transmit@{dns\+\_\+transmit}!s1@{s1}}
134\index{s1@{s1}!dns\+\_\+transmit@{dns\+\_\+transmit}}
135\subsubsection{\texorpdfstring{s1}{s1}}
136{\footnotesize\ttfamily int dns\+\_\+transmit\+::s1}
137
138The socket file descriptor used for data transmission. This will either be 0 or 1 + an open file descriptor. The addition is done to allow the uninitialized state to be all zeros.
139
140Referenced by dns\+\_\+transmit\+\_\+free(), dns\+\_\+transmit\+\_\+get(), and dns\+\_\+transmit\+\_\+io().
141
142\mbox{\label{structdns__transmit_a7a0980e55362102bcf69b4b4e1937eb7}}
143\index{dns\+\_\+transmit@{dns\+\_\+transmit}!servers@{servers}}
144\index{servers@{servers}!dns\+\_\+transmit@{dns\+\_\+transmit}}
145\subsubsection{\texorpdfstring{servers}{servers}}
146{\footnotesize\ttfamily const \hyperlink{structipv4addr}{ipv4addr}$\ast$ dns\+\_\+transmit\+::servers}
147
148The list of servers to try.
149
150Referenced by dns\+\_\+transmit\+\_\+free(), and dns\+\_\+transmit\+\_\+start().
151
152\mbox{\label{structdns__transmit_a297c2417beaa8d4ec327a7df73f32a60}}
153\index{dns\+\_\+transmit@{dns\+\_\+transmit}!tcpstate@{tcpstate}}
154\index{tcpstate@{tcpstate}!dns\+\_\+transmit@{dns\+\_\+transmit}}
155\subsubsection{\texorpdfstring{tcpstate}{tcpstate}}
156{\footnotesize\ttfamily int dns\+\_\+transmit\+::tcpstate}
157
158Current state of the T\+CP connection. Valid values are\+:
159
160\begin{DoxyItemize}
161\item 0 is uninitialized (ie using U\+DP) \item 1 is connecting \item 2 is connected, sending query \item 3 is query sent, waiting for start of response \item 4 is reading response length \item 5 is read packet length, reading response \end{DoxyItemize}
162
163
164Referenced by dns\+\_\+transmit\+\_\+free(), dns\+\_\+transmit\+\_\+get(), and dns\+\_\+transmit\+\_\+io().
165
166\mbox{\label{structdns__transmit_a833c92236dc2624f378db02176425e5c}}
167\index{dns\+\_\+transmit@{dns\+\_\+transmit}!udploop@{udploop}}
168\index{udploop@{udploop}!dns\+\_\+transmit@{dns\+\_\+transmit}}
169\subsubsection{\texorpdfstring{udploop}{udploop}}
170{\footnotesize\ttfamily unsigned int dns\+\_\+transmit\+::udploop}
171
172Count of number of times the U\+DP query was sent to each server.
173
174Referenced by dns\+\_\+transmit\+\_\+free(), dns\+\_\+transmit\+\_\+get(), and dns\+\_\+transmit\+\_\+start().
175
176
177
178The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
179\item
180dns.\+h\end{DoxyCompactItemize}
181