| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
| <title>oscl_ip_socket.h Source File</title> |
| <link href="doxygen.css" rel="stylesheet" type="text/css"> |
| </head><body> |
| <!-- Generated by Doxygen 1.2.18 --> |
| <center> |
| <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> |
| <hr><h1>oscl_ip_socket.h</h1><a href="oscl__ip__socket_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 |
| 00002 <span class="preprocessor">#ifndef OSCL_IP_SOCKET_H_INCLUDED</span> |
| 00003 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_IP_SOCKET_H_INCLUDED</span> |
| 00004 <span class="preprocessor"></span> |
| 00005 <span class="preprocessor">#include "<a class="code" href="oscl__socket__types_8h.html">oscl_socket_types.h</a>"</span> |
| 00006 <span class="preprocessor">#include "<a class="code" href="oscl__vector_8h.html">oscl_vector.h</a>"</span> |
| 00007 <span class="preprocessor">#include "<a class="code" href="oscl__mem_8h.html">oscl_mem.h</a>"</span> |
| 00008 |
| 00011 <span class="keyword">class </span><a class="code" href="classOsclSocketServ.html">OsclSocketServ</a>; |
| 00012 <span class="keyword">class </span><a class="code" href="classOsclSocketI.html">OsclSocketI</a>; |
| 00013 <span class="keyword">class </span><a class="code" href="classOsclSocketServI.html">OsclSocketServI</a>; |
| 00014 <span class="keyword">class </span><a class="code" href="classPVLogger.html">PVLogger</a>; |
| <a name="l00015"></a><a class="code" href="classOsclIPSocketI.html">00015</a> <span class="keyword">class </span><a class="code" href="classOsclIPSocketI.html">OsclIPSocketI</a> |
| 00016 { |
| 00017 <span class="keyword">public</span>: |
| 00018 <span class="comment">//Synchronous methods.</span> |
| 00019 int32 <a class="code" href="classOsclIPSocketI.html#a0">Bind</a>(<a class="code" href="classOsclNetworkAddress.html">OsclNetworkAddress</a>& aAddress); |
| 00020 int32 <a class="code" href="classOsclIPSocketI.html#a1">Join</a>(<a class="code" href="classOsclNetworkAddress.html">OsclNetworkAddress</a>& aAddress); |
| 00021 int32 <a class="code" href="classOsclIPSocketI.html#a2">SetRecvBufferSize</a>(uint32 size); |
| 00022 <span class="keyword">virtual</span> int32 <a class="code" href="classOsclIPSocketI.html#a3">Close</a>() = 0; |
| 00023 <span class="keyword">virtual</span> uint8 *<a class="code" href="classOsclIPSocketI.html#a4">GetRecvData</a>(int32 *aLength) = 0; |
| 00024 <span class="keyword">virtual</span> uint8 *<a class="code" href="classOsclIPSocketI.html#a5">GetSendData</a>(int32 *aLength) = 0; |
| <a name="l00025"></a><a class="code" href="classOsclIPSocketI.html#a6">00025</a> <span class="keyword">virtual</span> <a class="code" href="classOsclIPSocketI.html#a6">~OsclIPSocketI</a>() {} |
| 00026 |
| <a name="l00027"></a><a class="code" href="classOsclIPSocketI.html#a7">00027</a> <a class="code" href="classOsclSocketServI.html">OsclSocketServI</a>* <a class="code" href="classOsclIPSocketI.html#a7">SocketServ</a>() |
| 00028 { |
| 00029 <span class="keywordflow">return</span> <a class="code" href="classOsclIPSocketI.html#n5">iSocketServ</a>; |
| 00030 } |
| <a name="l00031"></a><a class="code" href="classOsclIPSocketI.html#a8">00031</a> <a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a>& <a class="code" href="classOsclIPSocketI.html#a8">Alloc</a>() |
| 00032 { |
| 00033 <span class="keywordflow">return</span> <a class="code" href="classOsclIPSocketI.html#n0">iAlloc</a>; |
| 00034 } |
| 00035 |
| 00036 <span class="keyword">protected</span>: |
| <a name="l00037"></a><a class="code" href="classOsclIPSocketI.html#n0">00037</a> <a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> &<a class="code" href="classOsclIPSocketI.html#n0">iAlloc</a>; |
| 00038 |
| <a name="l00039"></a><a class="code" href="classOsclIPSocketI.html#n1">00039</a> <a class="code" href="classOsclNetworkAddress.html">OsclNetworkAddress</a> <a class="code" href="classOsclIPSocketI.html#n1">iAddress</a>; |
| <a name="l00040"></a><a class="code" href="classOsclIPSocketI.html#n2">00040</a> uint32 <a class="code" href="classOsclIPSocketI.html#n2">iId</a>; |
| <a name="l00041"></a><a class="code" href="classOsclIPSocketI.html#n3">00041</a> <a class="code" href="classOsclSocketObserver.html">OsclSocketObserver</a> *<a class="code" href="classOsclIPSocketI.html#n3">iObserver</a>; |
| <a name="l00042"></a><a class="code" href="classOsclIPSocketI.html#n4">00042</a> <a class="code" href="classOsclSocketI.html">OsclSocketI</a> *<a class="code" href="classOsclIPSocketI.html#n4">iSocket</a>; |
| <a name="l00043"></a><a class="code" href="classOsclIPSocketI.html#n5">00043</a> <a class="code" href="classOsclSocketServI.html">OsclSocketServI</a> *<a class="code" href="classOsclIPSocketI.html#n5">iSocketServ</a>; |
| <a name="l00044"></a><a class="code" href="classOsclIPSocketI.html#n6">00044</a> <a class="code" href="classPVLogger.html">PVLogger</a>* <a class="code" href="classOsclIPSocketI.html#n6">iLogger</a>; |
| 00045 |
| <a name="l00046"></a><a class="code" href="classOsclIPSocketI.html#l0">00046</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclSocketRequestAO.html">OsclSocketRequestAO</a>; |
| <a name="l00047"></a><a class="code" href="classOsclIPSocketI.html#l1">00047</a> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclSocketMethod.html">OsclSocketMethod</a>; |
| 00048 |
| <a name="l00049"></a><a class="code" href="classOsclIPSocketI.html#b0">00049</a> <a class="code" href="classOsclIPSocketI.html#b0">OsclIPSocketI</a>(<a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a>& a): iAlloc(a) |
| 00050 , <a class="code" href="classOsclIPSocketI.html#n2">iId</a>(0) |
| 00051 , iObserver(<a class="code" href="group__osclbase.html#a81">NULL</a>) |
| 00052 , iSocket(<a class="code" href="group__osclbase.html#a81">NULL</a>) |
| 00053 , iSocketServ(<a class="code" href="group__osclbase.html#a81">NULL</a>) |
| 00054 , iLogger(<a class="code" href="group__osclbase.html#a81">NULL</a>) |
| 00055 {} |
| 00056 |
| 00057 <span class="keywordtype">void</span> <a class="code" href="classOsclIPSocketI.html#b1">ConstructL</a>(<a class="code" href="classOsclSocketObserver.html">OsclSocketObserver</a> *aObs, <a class="code" href="classOsclSocketI.html">OsclSocketI</a>* aSock, <a class="code" href="classOsclSocketServI.html">OsclSocketServI</a>* aServ, uint32 aId); |
| 00058 |
| 00059 }; |
| 00060 |
| 00061 |
| 00062 |
| 00063 <span class="preprocessor">#endif</span> |
| 00064 <span class="preprocessor"></span> |
| 00065 |
| </pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> |
| <address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> |
| </small></address> |
| </body> |
| </html> |