CTimeServerSession Class Reference

Inherits CSession2, and CSession2.

List of all members.

Public Member Functions

virtual ~CTimeServerSession ()
void SendTimeToClient ()
void ServiceL (const RMessage2 &aMessage)
virtual ~CTimeServerSession ()
void ServiceL (const RMessage2 &aMessage)

Static Public Member Functions

static CTimeServerSessionNewL (CTimeServer &aServer)
static CTimeServerSessionNewLC (CTimeServer &aServer)
static CTimeServerSessionNewL (CTimeServer &aServer)
static CTimeServerSessionNewLC (CTimeServer &aServer)

Detailed Description

CTimeServerSession. An instance of class CTimeServerSession is created for each client.

Definition at line 31 of file timesession.h.


Constructor & Destructor Documentation

CTimeServerSession::~CTimeServerSession (  )  [virtual]
Initial value:
"fragment"><pre class="fragment"><a name="l00122"></a>00122     {
<a name="l00123"></a>00123     <a class="code" href="class_c_time_server.html#40ac9219e4400c125719d767d564fc3e">iSessionCount</a>--;
<a name="l00124"></a>00124     <span class="keywordflow">if</span> ( <a class="code" href="class_c_time_server.html#40ac9219e4400c125719d767d564fc3e">iSessionCount</a> &lt;= 0 )
<a name="l00125"></a>00125         {
<a name="l00126"></a>00126         CActiveScheduler::Stop();
<a name="l00127"></a>00127         }
<a name="l00128"></a>00128     }
</pre></div>
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="a8205372b5d379fa4b803e98b0726473"></a><!-- doxytag: member="CTimeServer::WaitForTickL" ref="a8205372b5d379fa4b803e98b0726473" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">void CTimeServer::WaitForTickL           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp

~CTimeServerSession. Destructor.

Definition at line 77 of file timesession.cpp.

virtual CTimeServerSession::~CTimeServerSession (  )  [virtual]

~CTimeServerSession. Destructor.


Member Function Documentation

CTimeServerSession * CTimeServerSession::NewL ( CTimeServer aServer  )  [static]

NewL. Two-phased constructor.

Parameters:
aServer The server.
Returns:
Pointer to created CTimeServerSession object.

Definition at line 31 of file timesession.cpp.

CTimeServerSession * CTimeServerSession::NewLC ( CTimeServer aServer  )  [static]

NewLC. Two-phased constructor.

Parameters:
aServer The server.
Returns:
Pointer to created CTimeServerSession object.

Definition at line 43 of file timesession.cpp.

void CTimeServerSession::SendTimeToClient (  ) 

SendTimeToClient. Call from Beat() and Synchronize(). Sends current time back to requesting client.

Definition at line 138 of file timesession.cpp.

void CTimeServerSession::ServiceL ( const RMessage2 &  aMessage  ) 

From CSession, ServiceL. Service request from client.

Parameters:
aMessage Message from client (containing requested operation and any data).

Definition at line 87 of file timesession.cpp.

static CTimeServerSession* CTimeServerSession::NewL ( CTimeServer aServer  )  [static]

NewL. Two-phased constructor.

Parameters:
aServer The server.
Returns:
Pointer to created CTimeServerSession object.
static CTimeServerSession* CTimeServerSession::NewLC ( CTimeServer aServer  )  [static]

NewLC. Two-phased constructor.

Parameters:
aServer The server.
Returns:
Pointer to created CTimeServerSession object.
void CTimeServerSession::ServiceL ( const RMessage2 &  aMessage  ) 

From CSession, ServiceL. Service request from client.

Parameters:
aMessage Message from client (containing requested operation and any data).

Generated by  doxygen 1.6.2