#include <KjServerTest.h>
Public Member Functions | |
KjServerTest () | |
~KjServerTest () | |
int | Update () |
Private Member Functions | |
bool | CanRead (const int _iClientId) |
Check if client can read. | |
const char * | Read (const int _iClientId) |
Read message from client connection. | |
void | Write (const int _iClientId, const char *_strMsg) |
Write message to the client connection. | |
int | GetNumClients () |
Get number of clients. | |
void | Connect (char *_strConn, const char *_strCertFile, const char *_strKeyFile) |
Connect new ssl server. | |
int | Start () |
void | CreateNewThread () |
Create new thread for new client connection. | |
void | ConnectServer () |
Connect server, set default parameters. | |
Static Private Member Functions | |
static void * | NewThread (void *_pArg) |
Private Attributes | |
KjServerThread * | m_pServer |
string | m_strReadMsg |
Message readed from client. | |
string | m_strWriteMsg |
Message write to the client. | |
bool | m_bIsConnected |
Is ssl server connected ? |
Definition at line 78 of file KjServerTest.h.
|
Definition at line 36 of file KjServerTest.cpp. References m_bIsConnected, m_pServer, m_strReadMsg, and m_strWriteMsg. |
|
Definition at line 45 of file KjServerTest.cpp. |
|
Check if client can read.
Definition at line 52 of file KjServerTest.cpp. References m_pServer. Referenced by Update(). |
|
Connect new ssl server.
Definition at line 128 of file KjServerTest.cpp. References m_pServer. Referenced by ConnectServer(). |
|
Connect server, set default parameters.
Definition at line 135 of file KjServerTest.cpp. References Connect(), and m_bIsConnected. Referenced by Update(). |
|
Create new thread for new client connection.
Definition at line 173 of file KjServerTest.cpp. References NewThread(). Referenced by Update(). |
|
Get number of clients.
Definition at line 119 of file KjServerTest.cpp. References m_pServer. Referenced by Update(). |
|
Definition at line 159 of file KjServerTest.cpp. References Start(). Referenced by CreateNewThread(). |
|
Read message from client connection.
Definition at line 75 of file KjServerTest.cpp. References m_pServer, and m_strReadMsg. Referenced by Update(). |
|
Definition at line 142 of file KjServerTest.cpp. References m_pServer. Referenced by NewThread(). |
|
Definition at line 182 of file KjServerTest.cpp. References CanRead(), ConnectServer(), CreateNewThread(), GetNumClients(), m_bIsConnected, Read(), and Write(). Referenced by main(). |
|
Write message to the client connection.
Definition at line 97 of file KjServerTest.cpp. References m_pServer, and m_strWriteMsg. Referenced by Update(). |
|
Is ssl server connected ?
Definition at line 84 of file KjServerTest.h. Referenced by ConnectServer(), KjServerTest(), and Update(). |
|
Definition at line 81 of file KjServerTest.h. Referenced by CanRead(), Connect(), GetNumClients(), KjServerTest(), Read(), Start(), and Write(). |
|
Message readed from client.
Definition at line 82 of file KjServerTest.h. Referenced by KjServerTest(), and Read(). |
|
Message write to the client.
Definition at line 83 of file KjServerTest.h. Referenced by KjServerTest(), and Write(). |