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_socket_serv_imp_base.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> <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> 9<hr><h1>oscl_socket_serv_imp_base.h</h1><a href="oscl__socket__serv__imp__base_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 1000002 <span class="preprocessor">#ifndef OSCL_SOCKET_SERV_IMP_BASE_H_INCLUDED</span> 1100003 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_SOCKET_SERV_IMP_BASE_H_INCLUDED</span> 1200004 <span class="preprocessor"></span> 1300005 <span class="preprocessor">#include "<a class="code" href="oscl__base_8h.html">oscl_base.h</a>"</span> 1400006 <span class="preprocessor">#include "<a class="code" href="oscl__socket__stats_8h.html">oscl_socket_stats.h</a>"</span> 1500007 1600008 <span class="keyword">class </span><a class="code" href="classPVLogger.html">PVLogger</a>; 1700009 18<a name="l00015"></a><a class="code" href="classOsclSocketServIBase.html">00015</a> <span class="keyword">class </span><a class="code" href="classOsclSocketServIBase.html">OsclSocketServIBase</a> 1900016 { 2000017 <span class="keyword">public</span>: 21<a name="l00018"></a><a class="code" href="classOsclSocketServIBase.html#a0">00018</a> <span class="keyword">virtual</span> <a class="code" href="classOsclSocketServIBase.html#a0">~OsclSocketServIBase</a>() 2200019 {} 2300020 2400021 <span class="keyword">virtual</span> int32 <a class="code" href="classOsclSocketServIBase.html#a1">Connect</a>(uint32 aMessageSlots) = 0; 2500022 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classOsclSocketServIBase.html#a2">Close</a>(<span class="keywordtype">bool</span>) = 0; 2600023 2700024 <span class="keyword">protected</span>: 28<a name="l00025"></a><a class="code" href="classOsclSocketServIBase.html#b0">00025</a> <a class="code" href="classOsclSocketServIBase.html#b0">OsclSocketServIBase</a>(<a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> &a) 2900026 : <a class="code" href="classOsclSocketServIBase.html#n0">iAlloc</a>(a) 3000027 { 3100028 <a class="code" href="classOsclSocketServIBase.html#n2">iServError</a> = 0; 3200029 <a class="code" href="classOsclSocketServIBase.html#n1">iServState</a> = <a class="code" href="classOsclSocketServIBase.html#t3t0">ESocketServ_Idle</a>; 3300030 <a class="code" href="classOsclSocketServIBase.html#m0">iLogger</a> = <a class="code" href="group__osclbase.html#a81">NULL</a>; 3400031 } 3500032 36<a name="l00033"></a><a class="code" href="classOsclSocketServIBase.html#n0">00033</a> <a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> &<a class="code" href="classOsclSocketServIBase.html#n0">iAlloc</a>; 3700034 3800035 <span class="comment">//server state</span> 39<a name="l00036"></a><a class="code" href="classOsclSocketServIBase.html#t3">00036</a> <span class="keyword">enum</span> <a class="code" href="classOsclSocketServIBase.html#t3">TSocketServState</a> 4000037 { 4100038 <a class="code" href="classOsclSocketServIBase.html#t3t0">ESocketServ_Idle</a> 4200039 , <a class="code" href="classOsclSocketServIBase.html#t3t1">ESocketServ_Connected</a> 4300040 , <a class="code" href="classOsclSocketServIBase.html#t3t2">ESocketServ_Error</a> 4400041 }; 45<a name="l00042"></a><a class="code" href="classOsclSocketServIBase.html#n1">00042</a> <a class="code" href="classOsclSocketServIBase.html#t3">TSocketServState</a> <a class="code" href="classOsclSocketServIBase.html#n1">iServState</a>; 4600043 47<a name="l00044"></a><a class="code" href="classOsclSocketServIBase.html#b1">00044</a> <a class="code" href="classOsclSocketServIBase.html#t3">TSocketServState</a> <a class="code" href="classOsclSocketServIBase.html#b1">State</a>()<span class="keyword">const</span> 4800045 { 4900046 <span class="keywordflow">return</span> <a class="code" href="classOsclSocketServIBase.html#n1">iServState</a>; 5000047 } 5100048 52<a name="l00049"></a><a class="code" href="classOsclSocketServIBase.html#b2">00049</a> <span class="keywordtype">bool</span> <a class="code" href="classOsclSocketServIBase.html#b2">IsServConnected</a>()<span class="keyword">const</span> 5300050 { 5400051 <span class="keywordflow">return</span> <a class="code" href="classOsclSocketServIBase.html#n1">iServState</a> == <a class="code" href="classOsclSocketServIBase.html#t3t1">ESocketServ_Connected</a>; 5500052 } 56<a name="l00053"></a><a class="code" href="classOsclSocketServIBase.html#n2">00053</a> <span class="keywordtype">int</span> <a class="code" href="classOsclSocketServIBase.html#n2">iServError</a>; 5700054 5800055 <span class="preprocessor">#if(PV_OSCL_SOCKET_STATS_LOGGING)</span> 5900056 <span class="preprocessor"></span> <span class="comment">//server stats</span> 6000057 OsclSocketServStats iServStats; 6100058 <span class="preprocessor">#endif</span> 6200059 <span class="preprocessor"></span> 6300060 <span class="keyword">public</span>: 64<a name="l00061"></a><a class="code" href="classOsclSocketServIBase.html#m0">00061</a> <a class="code" href="classPVLogger.html">PVLogger</a>* <a class="code" href="classOsclSocketServIBase.html#m0">iLogger</a>; 6500062 }; 6600063 6700064 6800065 6900066 <span class="preprocessor">#endif</span> 7000067 <span class="preprocessor"></span> 7100068 7200069 73</pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> 74<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> 75</small></address> 76</body> 77</html> 78