Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

ClientsThread Class Reference

List of all members.

Public Types

enum  RETURN_CODE { DELETE_CONNECTION = 0, KEEP_CONNECTION = 1, INCOMPLETE_REQUEST = 2, INCOMPLETE_REQUEST_NO_WAIT = 3 }

Public Member Functions

void clean ()
 ClientsThread ()
MemBufgetBuffer ()
MemBufgetBuffer2 ()
int getTimeout ()
int isParsing ()
int isStatic ()
int isToDestroy ()
void setStatic (int)
void setTimeout (int)
void setToDestroy (int)
void stop ()
 ~ClientsThread ()

Public Attributes

ClientsThreadnext

Static Public Attributes

const u_long ID_OFFSET = 200

Private Member Functions

int controlConnections ()
int isRunning ()
int isStopped ()

Private Attributes

MemBuf buffer
MemBuf buffer2
u_long buffersize
u_long buffersize2
ControlProtocolcontrolProtocolParser
int err
HttphttpParser
HttpshttpsParser
u_long id
int initialized
u_long nBytesToRead
int parsing
int staticThread
int threadIsRunning
int threadIsStopped
int timeout
int toDestroy

Friends

class Server

Member Enumeration Documentation

enum ClientsThread::RETURN_CODE
 

Enumeration values:
DELETE_CONNECTION  Delete the current connection from the connections pool.
KEEP_CONNECTION  Keep the connection in the connections pool waiting for new data.
INCOMPLETE_REQUEST  The request present in the connection buffer is not complete, keep data in the buffer and append to it.
INCOMPLETE_REQUEST_NO_WAIT  The request present in the buffer is not complete, append to the buffer and check before new data is present.


Constructor & Destructor Documentation

ClientsThread::ClientsThread  ) 
 

Construct the object.

ClientsThread::~ClientsThread  ) 
 

Destroy the ClientsThread object.


Member Function Documentation

void ClientsThread::clean  ) 
 

int ClientsThread::controlConnections  )  [private]
 

MemBuf* ClientsThread::getBuffer  ) 
 

MemBuf* ClientsThread::getBuffer2  ) 
 

int ClientsThread::getTimeout  ) 
 

Get the timeout value.

int ClientsThread::isParsing  ) 
 

int ClientsThread::isRunning  )  [private]
 

int ClientsThread::isStatic  ) 
 

int ClientsThread::isStopped  )  [private]
 

int ClientsThread::isToDestroy  ) 
 

void ClientsThread::setStatic int   ) 
 

void ClientsThread::setTimeout int  newTimeout  ) 
 

Set the timeout value for the thread.

Parameters:
newTimeout The new timeout value.

void ClientsThread::setToDestroy int   ) 
 

void ClientsThread::stop  ) 
 


Friends And Related Function Documentation

friend class Server [friend]
 


Member Data Documentation

MemBuf ClientsThread::buffer [private]
 

MemBuf ClientsThread::buffer2 [private]
 

u_long ClientsThread::buffersize [private]
 

u_long ClientsThread::buffersize2 [private]
 

ControlProtocol* ClientsThread::controlProtocolParser [private]
 

int ClientsThread::err [private]
 

Http* ClientsThread::httpParser [private]
 

Https* ClientsThread::httpsParser [private]
 

u_long ClientsThread::id [private]
 

const u_long ClientsThread::ID_OFFSET = 200 [static]
 

int ClientsThread::initialized [private]
 

u_long ClientsThread::nBytesToRead [private]
 

ClientsThread* ClientsThread::next
 

int ClientsThread::parsing [private]
 

int ClientsThread::staticThread [private]
 

int ClientsThread::threadIsRunning [private]
 

int ClientsThread::threadIsStopped [private]
 

int ClientsThread::timeout [private]
 

int ClientsThread::toDestroy [private]
 


Generated on Wed Nov 8 13:12:47 2006 for MyServer by doxygen 1.3.6