C++ common classes
General purpose classes for use across projects (Apache license)
|
CPConnectionHandler does the actual I/O for each connection. More...
#include <CPConnectionHandler.h>
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 |
CPConnectionHandler does the actual I/O for each connection.
Definition at line 37 of file CPConnectionHandler.h.
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.
CPConnectionHandler::~CPConnectionHandler | ( | ) | [virtual] |
Definition at line 39 of file CPConnectionHandler.cpp.
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.
long CPConnectionHandler::lCloseWaitMS [protected] |
Definition at line 50 of file CPConnectionHandler.h.