KjServerThread.h File Reference

#include <sstream>
#include <vector>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/file.h>
#include "../KjSslSocket/KjSslServer.h"
#include "../KjSslSocket/KjDefines.h"
#include "../KjSslSocket/KjSignal.h"
#include "K3dString.h"
#include <pthread.h>
#include "KjClientConn.h"

Go to the source code of this file.

Classes

class  KjServerThread

Typedefs

typedef std::vector< KjClientConn * > TClientArray


Detailed Description

SSL server thread example

Author: Jan Koci <koci@ujp.cz> (C) 2007 http://kjsslsocket.sourceforge.net/

Copyright: See COPYING file that comes with this distribution

07.05.29 - First version

Definition in file KjServerThread.h.


Typedef Documentation

typedef std::vector<KjClientConn*> TClientArray
 

KjServer is class for testing server 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

Server working with multiple clients.

Definition at line 68 of file KjServerThread.h.


Generated on Tue Jul 24 10:03:07 2007 for KjSslServer by  doxygen 1.4.6