KjServerThread Class Reference

#include <KjServerThread.h>

Inheritance diagram for KjServerThread:

K3d::K3dString List of all members.

Public Member Functions

 KjServerThread (char *_strConn, const char *_strCertFile, const char *_strKeyFile)
 ~KjServerThread ()
int GetNumClients ()
 Get number of clients.
KjClientConnGetClient (const int _iClientId)
 Get client from client array.
int Start ()
 Start server application.

Private Member Functions

void CreateNewThread ()
 Create new thread for new client connection.

Static Private Member Functions

static void * NewThread (void *_pArg)

Private Attributes

KjSslServer * m_pServer
 SSL server connection.
KjSignal * m_pSignal
 Check signals.
TClientArray m_tClientArray
 Client array.
bool m_bIsNewClientConn
 Is new client connected ?
pthread_t * m_pThread
 Pointer to some thread.
void * ms_pObject
 Pointer to some void.

Detailed Description

Definition at line 70 of file KjServerThread.h.


Constructor & Destructor Documentation

KjServerThread::KjServerThread char *  _strConn,
const char *  _strCertFile,
const char *  _strKeyFile
 

Definition at line 18 of file KjServerThread.cpp.

References m_bIsNewClientConn, m_pServer, m_pSignal, and m_pThread.

KjServerThread::~KjServerThread  ) 
 

Definition at line 27 of file KjServerThread.cpp.

References m_pServer, and m_pSignal.


Member Function Documentation

void KjServerThread::CreateNewThread  )  [private]
 

Create new thread for new client connection.

Definition at line 55 of file KjServerThread.cpp.

References KjClientConn::KjClientConn(), m_pServer, m_tClientArray, and NewThread().

Referenced by Start().

KjClientConn * KjServerThread::GetClient const int  _iClientId  ) 
 

Get client from client array.

Definition at line 75 of file KjServerThread.cpp.

References m_tClientArray.

int KjServerThread::GetNumClients  ) 
 

Get number of clients.

Definition at line 69 of file KjServerThread.cpp.

References m_tClientArray.

void * KjServerThread::NewThread void *  _pArg  )  [static, private]
 

Definition at line 41 of file KjServerThread.cpp.

References KjClientConn::NewClient().

Referenced by CreateNewThread().

int KjServerThread::Start  ) 
 

Start server application.

Return values:
int Returns 0 if server disconnected or if some error

Definition at line 82 of file KjServerThread.cpp.

References CreateNewThread(), m_pServer, and m_pSignal.


Member Data Documentation

bool KjServerThread::m_bIsNewClientConn [private]
 

Is new client connected ?

Definition at line 75 of file KjServerThread.h.

Referenced by KjServerThread().

KjSslServer* KjServerThread::m_pServer [private]
 

SSL server connection.

Definition at line 72 of file KjServerThread.h.

Referenced by CreateNewThread(), KjServerThread(), Start(), and ~KjServerThread().

KjSignal* KjServerThread::m_pSignal [private]
 

Check signals.

Definition at line 73 of file KjServerThread.h.

Referenced by KjServerThread(), Start(), and ~KjServerThread().

pthread_t* KjServerThread::m_pThread [private]
 

Pointer to some thread.

Definition at line 76 of file KjServerThread.h.

Referenced by KjServerThread().

TClientArray KjServerThread::m_tClientArray [private]
 

Client array.

Definition at line 74 of file KjServerThread.h.

Referenced by CreateNewThread(), GetClient(), and GetNumClients().

void* KjServerThread::ms_pObject [private]
 

Pointer to some void.

Definition at line 79 of file KjServerThread.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 24 10:03:07 2007 for KjSslServer by  doxygen 1.4.6