Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_count_serv_server.html
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Fri, 22 Jan 2010 18:26:19 +0000
changeset 1 25a17d01db0c
child 6 43e37759235e
permissions -rw-r--r--
Addition of the PDK content and example code for Documentation_content according to Feature bug 1607 and bug 1608

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>TB10.1 Example Applications: CCountServServer Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.3 -->
<h1>CCountServServer Class Reference</h1><!-- doxytag: class="CCountServServer" -->
<p>
<a href="class_c_count_serv_server-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">CSession2 *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_count_serv_server.html#6fd10682426087fa47686a535b1a03ad">NewSessionL</a> (const TVersion &amp;aVersion, const RMessage2 &amp;aMessage) const </td></tr>

<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_count_serv_server.html#8cbb4cf23ce6146bded0f2fa9a09b285">ThreadFunction</a> (TAny *aStarted)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_count_serv_server.html#75700ec8051bd8a2bbd677f7244207cb">PanicServer</a> (TCountServPanic aPanic)</td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_count_serv_server.html#ed2a6e31e0028426cca9da53a4f8e1d4">CCountServServer</a> (CActive::TPriority aActiveObjectPriority)</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Our server class - an active object - and therefore derived ultimately from CActive. It accepts requests from client threads and forwards them to the client session to be dealt with. It also handles the creation of the server-side client session. 
<p>Definition at line <a class="el" href="_simple_server_8h-source.html#l00043">43</a> of file <a class="el" href="_simple_server_8h-source.html">SimpleServer.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="ed2a6e31e0028426cca9da53a4f8e1d4"></a><!-- doxytag: member="CCountServServer::CCountServServer" ref="ed2a6e31e0028426cca9da53a4f8e1d4" args="(CActive::TPriority aActiveObjectPriority)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CCountServServer::CCountServServer           </td>
          <td>(</td>
          <td class="paramtype">CActive::TPriority&nbsp;</td>
          <td class="paramname"> <em>aActiveObjectPriority</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor takes the server priority value.<p>
The server is an active object, and the priority value is the priority of this active object.<p>
It passes the priority value to the base class in the Ctor list. By default, the session is not sharable, which is what we want here so no second parameter is passed to the CServer2 constructor. 
<p>Definition at line <a class="el" href="_simple_server_8cpp-source.html#l00040">40</a> of file <a class="el" href="_simple_server_8cpp-source.html">SimpleServer.cpp</a>.</p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="6fd10682426087fa47686a535b1a03ad"></a><!-- doxytag: member="CCountServServer::NewSessionL" ref="6fd10682426087fa47686a535b1a03ad" args="(const TVersion &amp;aVersion, const RMessage2 &amp;aMessage) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CSession2 * CCountServServer::NewSessionL           </td>
          <td>(</td>
          <td class="paramtype">const TVersion &amp;&nbsp;</td>
          <td class="paramname"> <em>aVersion</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const RMessage2 &amp;&nbsp;</td>
          <td class="paramname"> <em>aMessage</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new session with the server. 
<p>Definition at line <a class="el" href="_simple_server_8cpp-source.html#l00049">49</a> of file <a class="el" href="_simple_server_8cpp-source.html">SimpleServer.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="8cbb4cf23ce6146bded0f2fa9a09b285"></a><!-- doxytag: member="CCountServServer::ThreadFunction" ref="8cbb4cf23ce6146bded0f2fa9a09b285" args="(TAny *aStarted)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GLDEF_C TInt CCountServServer::ThreadFunction           </td>
          <td>(</td>
          <td class="paramtype">TAny *&nbsp;</td>
          <td class="paramname"> <em>aStarted</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Parameters: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em>aStarted</em>&nbsp;</td><td>
aStarted </td></tr>
</table>
</dl>
<p>Definition at line <a class="el" href="_simple_server_8cpp-source.html#l00271">271</a> of file <a class="el" href="_simple_server_8cpp-source.html">SimpleServer.cpp</a>.</p>

</div>
</div><p>
<a class="anchor" name="75700ec8051bd8a2bbd677f7244207cb"></a><!-- doxytag: member="CCountServServer::PanicServer" ref="75700ec8051bd8a2bbd677f7244207cb" args="(TCountServPanic aPanic)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CCountServServer::PanicServer           </td>
          <td>(</td>
          <td class="paramtype">TCountServPanic&nbsp;</td>
          <td class="paramname"> <em>aPanic</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
A utility function to panic the server. 
<p>Definition at line <a class="el" href="_simple_server_8cpp-source.html#l00070">70</a> of file <a class="el" href="_simple_server_8cpp-source.html">SimpleServer.cpp</a>.</p>

</div>
</div><p>
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 21 10:33:03 2010 for TB10.1 Example Applications by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>