Public Member Functions | Friends

CdcConnectionThread Class Reference

CdcConnectionThread is a class that runs in a separate thread, and manages most of the job of this server. More...

#include <DcConnectionThread.h>

List of all members.

Public Member Functions

 CdcConnectionThread (CdcSocket *psoc) throw (CdcException)
 Constructor - This is the only constructor for this class.
virtual ~CdcConnectionThread ()
 Destructor - The Destructor stops the thread if it runs, and calls the Destructor of CdcSocket.

Friends

int DcRun (void *pParam)
 This is a global friend function.

Detailed Description

CdcConnectionThread is a class that runs in a separate thread, and manages most of the job of this server.

It gets a CdcSocket object in the constructor, reads the request, gets the proper response file(s), process the file(s), and returns it to the client. It builds a proper header for the response and stay connected (waits for another request) if necessary.

In order to run the separate thread (and do the job this class suppose to do) the user should call CdcConnectionThread::DcRun (from the new thread).

Author:
Erez Bibi
Version:
1.0

Definition at line 56 of file DcConnectionThread.h.


Constructor & Destructor Documentation

CdcConnectionThread::CdcConnectionThread ( CdcSocket psoc ) throw (CdcException)

Constructor - This is the only constructor for this class.

It gets a pointer to a CdcSocket object (this object is connected to the client).

Parameters:
psocA pointer to an active CdcSocket object.

Definition at line 33 of file DcConnectionThread.cpp.

CdcConnectionThread::~CdcConnectionThread (  ) [virtual]

Destructor - The Destructor stops the thread if it runs, and calls the Destructor of CdcSocket.

Definition at line 47 of file DcConnectionThread.cpp.


Friends And Related Function Documentation

int DcRun ( void *  pParam ) [friend]

This is a global friend function.

This function runs as a separate thread, has access to all private members of the class and does the job of this thread.

Definition at line 530 of file DcConnectionThread.cpp.


The documentation for this class was generated from the following files: