Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/class_c_count_serv_server.html
author Graeme Price <GRAEME.PRICE@NOKIA.COM>
Fri, 15 Oct 2010 14:32:18 +0100
changeset 15 307f4279f433
parent 6 43e37759235e
permissions -rw-r--r--
Initial contribution of the Adaptation Documentation.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>TB9.2 Example Applications: CCountServServer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="contents">
<h1>CCountServServer Class Reference</h1><!-- doxytag: class="CCountServServer" --><!-- doxytag: inherits="CServer2" -->
<p>Inherits CServer2.</p>

<p><a href="class_c_count_serv_server-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CSession2 *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_count_serv_server.html#a6fd10682426087fa47686a535b1a03ad">NewSessionL</a> (const TVersion &amp;aVersion, const RMessage2 &amp;aMessage) const </td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_count_serv_server.html#a8cbb4cf23ce6146bded0f2fa9a09b285">ThreadFunction</a> (TAny *aStarted)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_count_serv_server.html#a75700ec8051bd8a2bbd677f7244207cb">PanicServer</a> (TCountServPanic aPanic)</td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_count_serv_server.html#aed2a6e31e0028426cca9da53a4f8e1d4">CCountServServer</a> (CActive::TPriority aActiveObjectPriority)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>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>

<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" id="aed2a6e31e0028426cca9da53a4f8e1d4"></a><!-- doxytag: member="CCountServServer::CCountServServer" ref="aed2a6e31e0028426cca9da53a4f8e1d4" 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><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor takes the server priority value.</p>
<p>The server is an active object, and the priority value is the priority of this active object.</p>
<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>

<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>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a6fd10682426087fa47686a535b1a03ad"></a><!-- doxytag: member="CCountServServer::NewSessionL" ref="a6fd10682426087fa47686a535b1a03ad" 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> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Creates a new session with the server. </p>

<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>
<a class="anchor" id="a8cbb4cf23ce6146bded0f2fa9a09b285"></a><!-- doxytag: member="CCountServServer::ThreadFunction" ref="a8cbb4cf23ce6146bded0f2fa9a09b285" 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><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aStarted</em>&nbsp;</td><td>aStarted </td></tr>
  </table>
  </dd>
</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>
<a class="anchor" id="a75700ec8051bd8a2bbd677f7244207cb"></a><!-- doxytag: member="CCountServServer::PanicServer" ref="a75700ec8051bd8a2bbd677f7244207cb" 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><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>A utility function to panic the server. </p>

<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>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>