1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>oscl: oscl_dns_gethostbyname.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<h1>oscl_dns_gethostbyname.h</h1><a href="oscl__dns__gethostbyname_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002 <span class="preprocessor">#ifndef OSCL_DNS_GETHOSTBYNAME_H_INCLUDED</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_DNS_GETHOSTBYNAME_H_INCLUDED</span>
<a name="l00004"></a>00004 <span class="preprocessor"></span>
<a name="l00005"></a>00005 <span class="comment">//#include "oscl_socket_serv_imp.h"</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include "<a class="code" href="oscl__dns__method_8h.html">oscl_dns_method.h</a>"</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include "<a class="code" href="oscl__dns_8h.html" title="The file oscl_socket.h defines the OSCL DNS APIs.">oscl_dns.h</a>"</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include "<a class="code" href="osclconfig__io_8h.html" title="This file contains common typedefs based on the ANSI C limits.h header.">osclconfig_io.h</a>"</span>
<a name="l00009"></a>00009
<a name="l00010"></a>00010
<a name="l00011"></a>00011 <span class="keyword">class </span><a class="code" href="classOsclGetHostByNameRequest.html">OsclGetHostByNameRequest</a>;
<a name="l00012"></a>00012
<a name="l00013"></a><a class="code" href="classOsclGetHostByNameMethod.html">00013</a> <span class="keyword">class </span><a class="code" href="classOsclGetHostByNameMethod.html">OsclGetHostByNameMethod</a> : <span class="keyword">public</span> <a class="code" href="classOsclDNSMethod.html">OsclDNSMethod</a>
<a name="l00014"></a>00014 {
<a name="l00015"></a>00015 <span class="keyword">public</span>:
<a name="l00016"></a>00016 <span class="keyword">static</span> <a class="code" href="classOsclGetHostByNameMethod.html">OsclGetHostByNameMethod</a> *<a class="code" href="classOsclGetHostByNameMethod.html#a0effbcdf00cb4d7d8ca8311b3f3a35a5">NewL</a>(<a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> &a,
<a name="l00017"></a>00017 <a class="code" href="classOsclDNSI.html">OsclDNSI</a> *aDNS,
<a name="l00018"></a>00018 <a class="code" href="classOsclDNSObserver.html">OsclDNSObserver</a> *aObserver,
<a name="l00019"></a>00019 uint32 aId);
<a name="l00020"></a>00020
<a name="l00021"></a>00021 <a class="code" href="classOsclGetHostByNameMethod.html#a02eed713f0aeebeb9b31e73ad771b09a">~OsclGetHostByNameMethod</a>();
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <a class="code" href="group__osclio.html#gace3a79456572c0e719f50c8c6dc5e445">TPVDNSEvent</a> <a class="code" href="classOsclGetHostByNameMethod.html#a4599c8facf2907c3198e3e5524c24e64">GetHostByName</a>(<span class="keywordtype">char</span> *name, <a class="code" href="classOsclNetworkAddress.html">OsclNetworkAddress</a> *addr,
<a name="l00024"></a>00024 int32 aTimeout, <a class="code" href="classOscl__Vector.html">Oscl_Vector<OsclNetworkAddress, OsclMemAllocator></a> * aAddressList);
<a name="l00025"></a>00025
<a name="l00026"></a>00026
<a name="l00027"></a>00027 <span class="keyword">private</span>:
<a name="l00028"></a>00028 <a class="code" href="classOsclGetHostByNameMethod.html">OsclGetHostByNameMethod</a>(<a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> &a)
<a name="l00029"></a>00029 : <a class="code" href="classOsclDNSMethod.html#af9559ba86a714de3820d5f7d16040f84">OsclDNSMethod</a>(a, <span class="stringliteral">"osclghbnmethod"</span>, <a class="code" href="group__osclio.html#gga8c2ea6404a214241178a4ca83f9d9a7ca5cd080e81647c4dfe2332aa3fb119f74">EPVDNSGetHostByName</a>)
<a name="l00030"></a>00030 , iGetHostByNameRequest(<a class="code" href="group__osclbase.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="The NULL_TERM_CHAR is used to terminate c-style strings.">NULL</a>)
<a name="l00031"></a>00031 {}
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keywordtype">void</span> ConstructL(<a class="code" href="classOsclDNSI.html">OsclDNSI</a>* aDNS,
<a name="l00034"></a>00034 <a class="code" href="classOsclDNSObserver.html">OsclDNSObserver</a> *aObserver,
<a name="l00035"></a>00035 uint32 aId);
<a name="l00036"></a>00036
<a name="l00037"></a>00037 <a class="code" href="classOsclGetHostByNameRequest.html">OsclGetHostByNameRequest</a> *iGetHostByNameRequest;
<a name="l00038"></a>00038 };
<a name="l00039"></a>00039
<a name="l00040"></a>00040 <span class="keyword">class </span><a class="code" href="classGetHostByNameParam.html">GetHostByNameParam</a>;
<a name="l00041"></a>00041
<a name="l00042"></a><a class="code" href="classOsclGetHostByNameRequest.html">00042</a> <span class="keyword">class </span><a class="code" href="classOsclGetHostByNameRequest.html">OsclGetHostByNameRequest</a> : <span class="keyword">public</span> <a class="code" href="classOsclDNSRequestAO.html">OsclDNSRequestAO</a>
<a name="l00043"></a>00043 {
<a name="l00044"></a>00044 <span class="keyword">private</span>:
<a name="l00045"></a>00045 <span class="keyword">static</span> <a class="code" href="classOsclGetHostByNameRequest.html">OsclGetHostByNameRequest</a> *NewL(
<a name="l00046"></a>00046 <a class="code" href="classOsclDNSI.html">OsclDNSI</a> *aDNS,
<a name="l00047"></a>00047 <a class="code" href="classOsclGetHostByNameMethod.html">OsclGetHostByNameMethod</a> *aMethod);
<a name="l00048"></a>00048
<a name="l00049"></a>00049 ~<a class="code" href="classOsclGetHostByNameRequest.html">OsclGetHostByNameRequest</a>();
<a name="l00050"></a>00050
<a name="l00051"></a>00051
<a name="l00052"></a>00052 <a class="code" href="classOsclGetHostByNameRequest.html">OsclGetHostByNameRequest</a>()
<a name="l00053"></a>00053 : <a class="code" href="classOsclDNSRequestAO.html#ae26fff66ad6c66d9ee36589be22118f6">OsclDNSRequestAO</a>(<span class="stringliteral">"osclghbnrequest"</span>)
<a name="l00054"></a>00054 , iParam(<a class="code" href="group__osclbase.html#ga070d2ce7b6bb7e5c05602aa8c308d0c4" title="The NULL_TERM_CHAR is used to terminate c-style strings.">NULL</a>)
<a name="l00055"></a>00055 , iRequestPhase(GetFirstHostAddress)
<a name="l00056"></a>00056 {}
<a name="l00057"></a>00057
<a name="l00058"></a>00058 <span class="keywordtype">void</span> ConstructL(<a class="code" href="classOsclDNSI.html">OsclDNSI</a> *aDNS,
<a name="l00059"></a>00059 <a class="code" href="classOsclGetHostByNameMethod.html">OsclGetHostByNameMethod</a> *aMethod)
<a name="l00060"></a>00060 {
<a name="l00061"></a>00061 <a class="code" href="classOsclDNSRequestAO.html#a938ce5d6eef8c30936931aa029751989">OsclDNSRequestAO::ConstructL</a>(aDNS, aMethod);
<a name="l00062"></a>00062 }
<a name="l00063"></a>00063
<a name="l00064"></a>00064 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Success();
<a name="l00065"></a>00065 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Failure();
<a name="l00066"></a>00066 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Cancelled();
<a name="l00067"></a>00067
<a name="l00068"></a>00068 <span class="keywordtype">void</span> GetHostByName(<span class="keywordtype">char</span> *name, <a class="code" href="classOsclNetworkAddress.html">OsclNetworkAddress</a> *addr, <a class="code" href="classOscl__Vector.html">Oscl_Vector<OsclNetworkAddress, OsclMemAllocator></a> *aAddressList);
<a name="l00069"></a>00069
<a name="l00070"></a>00070 <a class="code" href="classGetHostByNameParam.html">GetHostByNameParam</a> *iParam;
<a name="l00071"></a>00071 <span class="keyword">enum</span> GetHostByNameRequestPhase
<a name="l00072"></a>00072 {
<a name="l00073"></a>00073 GetFirstHostAddress,
<a name="l00074"></a>00074 GetAlternateHostAddress
<a name="l00075"></a>00075 };
<a name="l00076"></a>00076
<a name="l00077"></a>00077 GetHostByNameRequestPhase iRequestPhase;
<a name="l00078"></a><a class="code" href="classOsclGetHostByNameRequest.html#a719e06e9d678b90a3b17f07e68f23d7e">00078</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclGetHostByNameMethod.html">OsclGetHostByNameMethod</a>;
<a name="l00079"></a>00079
<a name="l00080"></a>00080 };
<a name="l00081"></a>00081
<a name="l00082"></a>00082
<a name="l00083"></a>00083
<a name="l00084"></a>00084 <span class="preprocessor">#endif</span>
<a name="l00085"></a>00085 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: CORE_9.002.1.1 </small>
</small></address>
</body>
</html>
|