KjClient Class Reference

#include <KjClient.h>

List of all members.

Public Member Functions

 KjClient ()
 ~KjClient ()
int Start ()
 Start client application.

Private Member Functions

void DeleteEndMsg (string &_strMsg)
 Delete end message from string is message exists.

Private Attributes

KjSslConnection * m_pCon
 Client SSL connections.
KjSignal * m_pSignal
 Check signals.


Detailed Description

KjClient is class for testing client connection via KjSslSocket library.
Demands self-signed certificate files test.key and test.crt
Adding the argument -x509 to the openssl tool will generate a self-signed certificate:
$ openssl req -x509 -newkey rsa:1024 -keyout test.key -nodes -out test.crt
or
$ openssl req -x509 -newkey rsa:1024 -keyout test.key -nodes -days 365 -out test.crt

Definition at line 73 of file KjClient.h.


Constructor & Destructor Documentation

KjClient::KjClient  ) 
 

Definition at line 38 of file KjClient.cpp.

References m_pCon, and m_pSignal.

KjClient::~KjClient  ) 
 

Definition at line 44 of file KjClient.cpp.

References m_pCon, and m_pSignal.


Member Function Documentation

void KjClient::DeleteEndMsg string &  _strMsg  )  [private]
 

Delete end message from string is message exists.

Parameters:
_strMsg Message

Definition at line 138 of file KjClient.cpp.

Referenced by Start().

int KjClient::Start  ) 
 

Start client application.

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

Definition at line 60 of file KjClient.cpp.

References DeleteEndMsg(), m_pCon, and m_pSignal.

Referenced by main().


Member Data Documentation

KjSslConnection* KjClient::m_pCon [private]
 

Client SSL connections.

Definition at line 75 of file KjClient.h.

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

KjSignal* KjClient::m_pSignal [private]
 

Check signals.

Definition at line 76 of file KjClient.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jul 24 10:02:50 2007 for Clienttest by  doxygen 1.4.6