C++ common classes
General purpose classes for use across projects (Apache license)
CPConnectionHandler Class Reference

CPConnectionHandler does the actual I/O for each connection. More...

#include <CPConnectionHandler.h>

Inheritance diagram for CPConnectionHandler:
CPHandler CXPlatThread

List of all members.

Public Member Functions

 CPConnectionHandler (long lCloseWaitMilliseconds=0)
 CloseWaitMilliseconds is the number of milliseconds after the last send to close the socket.
virtual ~CPConnectionHandler ()

Protected Member Functions

virtual unsigned WorkerFunction (void *pParam)
 Function that does the work.
long GetTimeDiff (long lStart, long lFinish)
 Get MS difference between 2 times.

Protected Attributes

long lCloseWaitMS

Detailed Description

CPConnectionHandler does the actual I/O for each connection.

Definition at line 37 of file CPConnectionHandler.h.


Constructor & Destructor Documentation

CPConnectionHandler::CPConnectionHandler ( long  lCloseWaitMilliseconds = 0)

CloseWaitMilliseconds is the number of milliseconds after the last send to close the socket.

Definition at line 29 of file CPConnectionHandler.cpp.

Definition at line 39 of file CPConnectionHandler.cpp.


Member Function Documentation

long CPConnectionHandler::GetTimeDiff ( long  lStart,
long  lFinish 
) [protected]

Get MS difference between 2 times.

Definition at line 217 of file CPConnectionHandler.cpp.

unsigned CPConnectionHandler::WorkerFunction ( void pParam) [protected, virtual]

Function that does the work.

Implements CPHandler.

Definition at line 46 of file CPConnectionHandler.cpp.


Member Data Documentation

Definition at line 50 of file CPConnectionHandler.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines