Main Page | Namespace List | Class Hierarchy | Class List | Directories | 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

 ClientsThread ()
MemBufgetBuffer ()
MemBufgetBuffer2 ()
ThreadID getThreadId ()
int getTimeout ()
int isBusy ()
int isStatic ()
int isToDestroy ()
int join ()
int run ()
void setStatic (int)
void setTimeout (int)
void setToDestroy (int)
void stop ()
 ~ClientsThread ()

Private Member Functions

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

Private Attributes

MemBuf buffer
MemBuf buffer2
u_long buffersize
u_long buffersize2
int busy
ControlProtocolcontrolProtocolParser
FtpftpParser
HttpProtocolhttpParser
HttpsProtocolhttpsParser
u_long id
int initialized
u_long nBytesToRead
int staticThread
int threadIsRunning
int threadIsStopped
ThreadID tid
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

int ClientsThread::controlConnections  )  [private]
 

MemBuf* ClientsThread::getBuffer  ) 
 

MemBuf* ClientsThread::getBuffer2  ) 
 

ThreadID ClientsThread::getThreadId  ) 
 

int ClientsThread::getTimeout  ) 
 

Get the timeout value.

int ClientsThread::isBusy  ) 
 

int ClientsThread::isRunning  )  [private]
 

int ClientsThread::isStatic  ) 
 

int ClientsThread::isStopped  )  [private]
 

int ClientsThread::isToDestroy  ) 
 

int ClientsThread::join  ) 
 

int ClientsThread::run  ) 
 

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]
 

int ClientsThread::busy [private]
 

ControlProtocol* ClientsThread::controlProtocolParser [private]
 

Ftp* ClientsThread::ftpParser [private]
 

HttpProtocol* ClientsThread::httpParser [private]
 

HttpsProtocol* ClientsThread::httpsParser [private]
 

u_long ClientsThread::id [private]
 

int ClientsThread::initialized [private]
 

u_long ClientsThread::nBytesToRead [private]
 

int ClientsThread::staticThread [private]
 

int ClientsThread::threadIsRunning [private]
 

int ClientsThread::threadIsStopped [private]
 

ThreadID ClientsThread::tid [private]
 

int ClientsThread::timeout [private]
 

int ClientsThread::toDestroy [private]
 


Generated on Mon Jun 16 13:47:16 2008 for MyServer by  doxygen 1.3.9.1