Home | History | Annotate | Download | only in oscl_html
      1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
      3 <title>oscl_dns.h Source File</title>
      4 <link href="doxygen.css" rel="stylesheet" type="text/css">
      5 </head><body>
      6 <!-- Generated by Doxygen 1.2.18 -->
      7 <center>
      8 <a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; </center>
      9 <hr><h1>oscl_dns.h</h1><a href="oscl__dns_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">// -*- c++ -*-</span>
     10 00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
     11 00003 
     12 00004 <span class="comment">//                     O S C L _ D N S</span>
     13 00005 
     14 00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
     15 00007 
     16 00018 <span class="preprocessor">#ifndef OSCL_DNS_H_INCLUDED</span>
     17 00019 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_DNS_H_INCLUDED</span>
     18 00020 <span class="preprocessor"></span>
     19 00021 <span class="preprocessor">#ifndef OSCLCONFIG_IO_H_INCLUDED</span>
     20 00022 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="osclconfig__io_8h.html">osclconfig_io.h</a>"</span>
     21 00023 <span class="preprocessor">#endif</span>
     22 00024 <span class="preprocessor"></span>
     23 00025 <span class="preprocessor">#ifndef OSCL_SOCKET_TYPES_H_INCLUDED</span>
     24 00026 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__socket__types_8h.html">oscl_socket_types.h</a>"</span>
     25 00027 <span class="preprocessor">#endif</span>
     26 00028 <span class="preprocessor"></span>
     27 00029 <span class="preprocessor">#ifndef OSCL_DEFALLOC_H_INCLUDED</span>
     28 00030 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__defalloc_8h.html">oscl_defalloc.h</a>"</span>
     29 00031 <span class="preprocessor">#endif</span>
     30 00032 <span class="preprocessor"></span>
     31 00033 <span class="preprocessor">#ifndef OSCL_SOCKET_H_INCLUDED</span>
     32 00034 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__socket_8h.html">oscl_socket.h</a>"</span>
     33 00035 <span class="preprocessor">#endif</span>
     34 00036 <span class="preprocessor"></span>
     35 <a name="l00037"></a><a class="code" href="group__osclio.html#a24">00037</a> <span class="keyword">enum</span> <a class="code" href="group__osclio.html#a24">TPVDNSFxn</a>
     36 00038 {
     37 00039     <a class="code" href="group__osclio.html#a24a0">EPVDNSGetHostByName</a>
     38 00040 } ;
     39 00041 
     40 <a name="l00042"></a><a class="code" href="group__osclio.html#a25">00042</a> <span class="keyword">enum</span> <a class="code" href="group__osclio.html#a25">TPVDNSEvent</a>
     41 00043 {
     42 00044     <a class="code" href="group__osclio.html#a25a1">EPVDNSSuccess</a>
     43 00045     , <a class="code" href="group__osclio.html#a25a2">EPVDNSPending</a>
     44 00046     , <a class="code" href="group__osclio.html#a25a3">EPVDNSTimeout</a>
     45 00047     , <a class="code" href="group__osclio.html#a25a4">EPVDNSFailure</a>
     46 00048     , <a class="code" href="group__osclio.html#a25a5">EPVDNSCancel</a>
     47 00049 } ;
     48 00050 
     49 <a name="l00055"></a><a class="code" href="classOsclDNSObserver.html">00055</a> <span class="keyword">class </span><a class="code" href="classOsclDNSObserver.html">OsclDNSObserver</a>
     50 00056 {
     51 00057     <span class="keyword">public</span>:
     52 00069         OSCL_IMPORT_REF <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOsclDNSObserver.html#a0">HandleDNSEvent</a>(int32 aId, <a class="code" href="group__osclio.html#a24">TPVDNSFxn</a> aFxn, <a class="code" href="group__osclio.html#a25">TPVDNSEvent</a> aEvent, int32 aError) = 0;
     53 00070 
     54 <a name="l00071"></a><a class="code" href="classOsclDNSObserver.html#a1">00071</a>         <span class="keyword">virtual</span> <a class="code" href="classOsclDNSObserver.html#a1">~OsclDNSObserver</a>() {}
     55 00072 };
     56 00073 
     57 00074 <span class="keyword">class </span><a class="code" href="classOsclGetHostByNameMethod.html">OsclGetHostByNameMethod</a>;
     58 00075 <span class="keyword">class </span><a class="code" href="classOsclDNSI.html">OsclDNSI</a>;
     59 00076 
     60 <a name="l00080"></a><a class="code" href="classOsclDNS.html">00080</a> <span class="keyword">class </span><a class="code" href="classOsclDNS.html">OsclDNS</a>: <span class="keyword">public</span> <a class="code" href="classHeapBase.html">HeapBase</a>
     61 00081 {
     62 00082     <span class="keyword">public</span>:
     63 00093         OSCL_IMPORT_REF <span class="keyword">static</span> <a class="code" href="classOsclDNS.html">OsclDNS</a>* <a class="code" href="classOsclDNS.html#d0">NewL</a>(
     64 00094             <a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> &amp;alloc,
     65 00095             <a class="code" href="classOsclSocketServ.html">OsclSocketServ</a>&amp; aServ,
     66 00096             <a class="code" href="classOsclDNSObserver.html">OsclDNSObserver</a> &amp; aObserver,
     67 00097             uint32 aId);
     68 00098 
     69 00106         OSCL_IMPORT_REF <a class="code" href="classOsclDNS.html#a0">~OsclDNS</a>();
     70 00107 
     71 00121         OSCL_IMPORT_REF <a class="code" href="group__osclio.html#a25">TPVDNSEvent</a> <a class="code" href="classOsclDNS.html#a1">GetHostByName</a>(<span class="keywordtype">char</span> *name, <a class="code" href="classOsclNetworkAddress.html">OsclNetworkAddress</a>&amp; addr,
     72 00122                 int32 aTimeoutMsec = -1);
     73 00123 
     74 00132         OSCL_IMPORT_REF <span class="keywordtype">void</span> <a class="code" href="classOsclDNS.html#a2">CancelGetHostByName</a>();
     75 00133 
     76 00134     <span class="keyword">private</span>:
     77 00135         <a class="code" href="classOsclDNS.html">OsclDNS</a>(
     78 00136             <a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> &amp;alloc,
     79 00137             <a class="code" href="classOsclDNSObserver.html">OsclDNSObserver</a>&amp; obs,
     80 00138             uint32 id);
     81 00139         <span class="keywordtype">void</span> ConstructL(<a class="code" href="classOsclSocketServ.html">OsclSocketServ</a> &amp;aServ);
     82 00140 
     83 00141         <a class="code" href="classOsclGetHostByNameMethod.html">OsclGetHostByNameMethod</a>* iGetHostByNameMethod;
     84 00142         <a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a>&amp; iAlloc;
     85 00143         <a class="code" href="classOsclDNSObserver.html">OsclDNSObserver</a>&amp; iObserver;
     86 00144         uint32 iId;
     87 00145         <a class="code" href="classOsclDNSI.html">OsclDNSI</a> *iDNS;
     88 <a name="l00146"></a><a class="code" href="classOsclDNS.html#l0">00146</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclDNSRequestAO.html">OsclDNSRequestAO</a>;
     89 00147 
     90 00148 };
     91 00149 
     92 00150 
     93 00151 
     94 00152 <span class="preprocessor">#endif</span>
     95 00153 <span class="preprocessor"></span>
     96 </pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
     97 <address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small>
     98 </small></address>
     99 </body>
    100 </html>
    101