blob: 124e9c84815d8775ceb84ce5cae3df1563ca3aa1 [file] [log] [blame]
<!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_socket_serv_imp_base.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> &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>
<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
00002 <span class="preprocessor">#ifndef OSCL_SOCKET_SERV_IMP_BASE_H_INCLUDED</span>
00003 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_SOCKET_SERV_IMP_BASE_H_INCLUDED</span>
00004 <span class="preprocessor"></span>
00005 <span class="preprocessor">#include "<a class="code" href="oscl__base_8h.html">oscl_base.h</a>"</span>
00006 <span class="preprocessor">#include "<a class="code" href="oscl__socket__stats_8h.html">oscl_socket_stats.h</a>"</span>
00007
00008 <span class="keyword">class </span><a class="code" href="classPVLogger.html">PVLogger</a>;
00009
<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>
00016 {
00017 <span class="keyword">public</span>:
<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>()
00019 {}
00020
00021 <span class="keyword">virtual</span> int32 <a class="code" href="classOsclSocketServIBase.html#a1">Connect</a>(uint32 aMessageSlots) = 0;
00022 <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;
00023
00024 <span class="keyword">protected</span>:
<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> &amp;a)
00026 : <a class="code" href="classOsclSocketServIBase.html#n0">iAlloc</a>(a)
00027 {
00028 <a class="code" href="classOsclSocketServIBase.html#n2">iServError</a> = 0;
00029 <a class="code" href="classOsclSocketServIBase.html#n1">iServState</a> = <a class="code" href="classOsclSocketServIBase.html#t3t0">ESocketServ_Idle</a>;
00030 <a class="code" href="classOsclSocketServIBase.html#m0">iLogger</a> = <a class="code" href="group__osclbase.html#a81">NULL</a>;
00031 }
00032
<a name="l00033"></a><a class="code" href="classOsclSocketServIBase.html#n0">00033</a> <a class="code" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> &amp;<a class="code" href="classOsclSocketServIBase.html#n0">iAlloc</a>;
00034
00035 <span class="comment">//server state</span>
<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>
00037 {
00038 <a class="code" href="classOsclSocketServIBase.html#t3t0">ESocketServ_Idle</a>
00039 , <a class="code" href="classOsclSocketServIBase.html#t3t1">ESocketServ_Connected</a>
00040 , <a class="code" href="classOsclSocketServIBase.html#t3t2">ESocketServ_Error</a>
00041 };
<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>;
00043
<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>
00045 {
00046 <span class="keywordflow">return</span> <a class="code" href="classOsclSocketServIBase.html#n1">iServState</a>;
00047 }
00048
<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>
00050 {
00051 <span class="keywordflow">return</span> <a class="code" href="classOsclSocketServIBase.html#n1">iServState</a> == <a class="code" href="classOsclSocketServIBase.html#t3t1">ESocketServ_Connected</a>;
00052 }
<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>;
00054
00055 <span class="preprocessor">#if(PV_OSCL_SOCKET_STATS_LOGGING)</span>
00056 <span class="preprocessor"></span> <span class="comment">//server stats</span>
00057 OsclSocketServStats iServStats;
00058 <span class="preprocessor">#endif</span>
00059 <span class="preprocessor"></span>
00060 <span class="keyword">public</span>:
<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>;
00062 };
00063
00064
00065
00066 <span class="preprocessor">#endif</span>
00067 <span class="preprocessor"></span>
00068
00069
</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>