source: trunk/Packages/synapse/docs/help/dnssend.TDNSSend.html

Last change on this file was 2, checked in by chronos, 12 years ago
  • Přidáno: Základní kostra projektu.
  • Přidáno: Knihovna synapse.
File size: 11.3 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
2<html>
3<head>
4<meta name="GENERATOR" content="PasDoc 0.9.0">
5<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
6<title>dnssend: Class TDNSSend</title>
7<link rel="StyleSheet" type="text/css" href="pasdoc.css">
8</head>
9<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
10<a name="TDNSSend"></a><h1 class="cio">Class TDNSSend</h1>
11<table class="sections">
12<tr>
13<td><a class="section" href="#@Description">Description</a></td><td><a class="section" href="#@Hierarchy">Hierarchy</a></td><td>Fields</td><td><a class="section" href="#@Methods">Methods</a></td><td><a class="section" href="#@Properties">Properties</a></td></tr></table>
14<a name="@Description"></a><h2 class="unit">Unit</h2>
15<p class="unitlink">
16<a href="dnssend.html">dnssend</a></p>
17<h2 class="declaration">Declaration</h2>
18<p class="declaration">
19<code>type TDNSSend = class(<a class="normal" href="blcksock.TSynaClient.html">TSynaClient</a>)</code></p>
20<h2 class="description">Description</h2>
21<p>
22Implementation of DNS protocol by UDP or TCP protocol.</p>
23<p>
24
25
26<p>Note: Are you missing properties for specify server address and port? Look to parent <a class="normal" href="blcksock.TSynaClient.html">TSynaClient</a> too!</p>
27<a name="@Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
28<ul class="hierarchy"><li class="ancestor">TObject</li>
29<li class="ancestor"><a class="normal" href="blcksock.TSynaClient.html">TSynaClient</a></li>
30<li class="thisitem">TDNSSend</li></ul><h2 class="overview">Overview</h2>
31<a name="@Methods"></a><h3 class="summary">Methods</h3>
32<table class="summary">
33<tr class="list">
34<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
35<td class="itemcode"><code>constructor <b><a href="dnssend.TDNSSend.html#Create">Create</a></b>;</code></td>
36</tr>
37<tr class="list2">
38<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
39<td class="itemcode"><code>destructor <b><a href="dnssend.TDNSSend.html#Destroy">Destroy</a></b>; override;</code></td>
40</tr>
41<tr class="list">
42<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
43<td class="itemcode"><code>function <b><a href="dnssend.TDNSSend.html#DNSQuery">DNSQuery</a></b>(Name: AnsiString; QType: Integer; const Reply: TStrings): Boolean;</code></td>
44</tr>
45</table>
46<a name="@Properties"></a><h3 class="summary">Properties</h3>
47<table class="summary">
48<tr class="list">
49<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
50<td class="itemcode"><code>property <b><a href="dnssend.TDNSSend.html#Sock">Sock</a></b>: <a href="blcksock.TUDPBlockSocket.html">TUDPBlockSocket</a> read FSock;</code></td>
51</tr>
52<tr class="list2">
53<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
54<td class="itemcode"><code>property <b><a href="dnssend.TDNSSend.html#TCPSock">TCPSock</a></b>: <a href="blcksock.TTCPBlockSocket.html">TTCPBlockSocket</a> read FTCPSock;</code></td>
55</tr>
56<tr class="list">
57<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
58<td class="itemcode"><code>property <b><a href="dnssend.TDNSSend.html#UseTCP">UseTCP</a></b>: Boolean read FUseTCP Write FUseTCP;</code></td>
59</tr>
60<tr class="list2">
61<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
62<td class="itemcode"><code>property <b><a href="dnssend.TDNSSend.html#RCode">RCode</a></b>: Integer read FRCode;</code></td>
63</tr>
64<tr class="list">
65<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
66<td class="itemcode"><code>property <b><a href="dnssend.TDNSSend.html#Authoritative">Authoritative</a></b>: Boolean read FAuthoritative;</code></td>
67</tr>
68<tr class="list2">
69<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
70<td class="itemcode"><code>property <b><a href="dnssend.TDNSSend.html#Truncated">Truncated</a></b>: Boolean read FTRuncated;</code></td>
71</tr>
72<tr class="list">
73<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
74<td class="itemcode"><code>property <b><a href="dnssend.TDNSSend.html#AnswerInfo">AnswerInfo</a></b>: TStringList read FAnswerInfo;</code></td>
75</tr>
76<tr class="list2">
77<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
78<td class="itemcode"><code>property <b><a href="dnssend.TDNSSend.html#NameserverInfo">NameserverInfo</a></b>: TStringList read FNameserverInfo;</code></td>
79</tr>
80<tr class="list">
81<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
82<td class="itemcode"><code>property <b><a href="dnssend.TDNSSend.html#AdditionalInfo">AdditionalInfo</a></b>: TStringList read FAdditionalInfo;</code></td>
83</tr>
84</table>
85<h2 class="description">Description</h2>
86<h3 class="detail">Methods</h3>
87<table class="detail">
88<tr class="list">
89<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
90<td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>;</code></td>
91</tr>
92</table>
93&nbsp;<table class="detail">
94<tr class="list">
95<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
96<td class="itemcode"><a name="Destroy"></a><code>destructor <b>Destroy</b>; override;</code></td>
97</tr>
98</table>
99&nbsp;<table class="detail">
100<tr class="list">
101<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
102<td class="itemcode"><a name="DNSQuery"></a><code>function <b>DNSQuery</b>(Name: AnsiString; QType: Integer; const Reply: TStrings): Boolean;</code></td>
103</tr>
104</table>
105<p>
106Query a DNSHost for QType resources correspond to a name. Supported QType values are: Qtype_A, Qtype_NS, Qtype_MD, Qtype_MF, Qtype_CNAME, Qtype_SOA, Qtype_MB, Qtype_MG, Qtype_MR, Qtype_NULL, Qtype_PTR, Qtype_HINFO, Qtype_MINFO, Qtype_MX, Qtype_TXT, Qtype_RP, Qtype_AFSDB, Qtype_X25, Qtype_ISDN, Qtype_RT, Qtype_NSAP, Qtype_NSAPPTR, Qtype_PX, Qtype_GPOS, Qtype_KX.
107
108<p>Type for zone transfers QTYPE_AXFR is supported too, but only in TCP mode!
109
110<p>&quot;Name&quot; is domain name or host name for queried resource. If &quot;name&quot; is IP address, automatically convert to reverse domain form (.in-addr.arpa).
111
112<p>If result is <code>True</code>, Reply contains resource records. One record on one line. If Resource record have multiple fields, they are stored on line divided by comma. (example: MX record contains value 'rs.cesnet.cz' with preference number 10, string in Reply is: '10,rs.cesnet.cz'). All numbers or IP address in resource are converted to string form.</p>
113<h3 class="detail">Properties</h3>
114<table class="detail">
115<tr class="list">
116<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
117<td class="itemcode"><a name="Sock"></a><code>property <b>Sock</b>: <a href="blcksock.TUDPBlockSocket.html">TUDPBlockSocket</a> read FSock;</code></td>
118</tr>
119</table>
120<p>
121Socket object used for UDP operation. Good for seting OnStatus hook, etc.</p>
122<table class="detail">
123<tr class="list">
124<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
125<td class="itemcode"><a name="TCPSock"></a><code>property <b>TCPSock</b>: <a href="blcksock.TTCPBlockSocket.html">TTCPBlockSocket</a> read FTCPSock;</code></td>
126</tr>
127</table>
128<p>
129Socket object used for TCP operation. Good for seting OnStatus hook, etc.</p>
130<table class="detail">
131<tr class="list">
132<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
133<td class="itemcode"><a name="UseTCP"></a><code>property <b>UseTCP</b>: Boolean read FUseTCP Write FUseTCP;</code></td>
134</tr>
135</table>
136<p>
137if <code>True</code>, then is used TCP protocol instead UDP. It is needed for zone transfers, etc.</p>
138<table class="detail">
139<tr class="list">
140<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
141<td class="itemcode"><a name="RCode"></a><code>property <b>RCode</b>: Integer read FRCode;</code></td>
142</tr>
143</table>
144<p>
145After DNS operation contains ResultCode of DNS operation. Values are: 0-no error, 1-format error, 2-server failure, 3-name error, 4-not implemented, 5-refused.</p>
146<table class="detail">
147<tr class="list">
148<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
149<td class="itemcode"><a name="Authoritative"></a><code>property <b>Authoritative</b>: Boolean read FAuthoritative;</code></td>
150</tr>
151</table>
152<p>
153<code>True</code>, if answer is authoritative.</p>
154<table class="detail">
155<tr class="list">
156<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
157<td class="itemcode"><a name="Truncated"></a><code>property <b>Truncated</b>: Boolean read FTRuncated;</code></td>
158</tr>
159</table>
160<p>
161<code>True</code>, if answer is truncated to 512 bytes.</p>
162<table class="detail">
163<tr class="list">
164<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
165<td class="itemcode"><a name="AnswerInfo"></a><code>property <b>AnswerInfo</b>: TStringList read FAnswerInfo;</code></td>
166</tr>
167</table>
168<p>
169Detailed informations from name server reply. One record per line. Record have comma delimited entries with type number, TTL and data filelds. This information contains detailed information about query reply.</p>
170<table class="detail">
171<tr class="list">
172<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
173<td class="itemcode"><a name="NameserverInfo"></a><code>property <b>NameserverInfo</b>: TStringList read FNameserverInfo;</code></td>
174</tr>
175</table>
176<p>
177Detailed informations from name server reply. One record per line. Record have comma delimited entries with type number, TTL and data filelds. This information contains detailed information about nameserver.</p>
178<table class="detail">
179<tr class="list">
180<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
181<td class="itemcode"><a name="AdditionalInfo"></a><code>property <b>AdditionalInfo</b>: TStringList read FAdditionalInfo;</code></td>
182</tr>
183</table>
184<p>
185Detailed informations from name server reply. One record per line. Record have comma delimited entries with type number, TTL and data filelds. This information contains detailed additional information.</p>
186<hr noshade size="1"><span class="appinfo"><em>Generated by <a target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.9.0</a> on 2012-04-23 21:38:50</em>
187</span>
188</body></html>
Note: See TracBrowser for help on using the repository browser.