ClientList Class Reference

#include <ClientList.h>

List of all members.

Public Member Functions

 ClientList ()
 ~ClientList ()
void setActive (long clientId)
long getNewID ()
long getClientID (long clientIP)
char * getClientList (int clientId, int &len)
X509 * getClientCertificate (int clientID)
SSL * getClientStream (int clientID)
EVP_PKEY * getClientPublicKey (int clientID)
int add (long clientIP, X509 *cert, SSL *ssl)

Detailed Description

This class maintains the list of client It keeps track of client status It maintains list of certificates It maintains the list of socket streams through which client is communicating


Constructor & Destructor Documentation

ClientList::ClientList (  ) 

Client list constructor

ClientList::~ClientList (  ) 

Constructor for initialization

Destructor of client list Free all the users certificates


Member Function Documentation

int ClientList::add ( long  clientIP,
X509 *  cert,
SSL *  ssl 
)

Get the public key of the given client

Add the new client to the client list Second argument gives the certificate of the client Third argument is the socket stream of the ssl client

X509 * ClientList::getClientCertificate ( int  clientID  ) 

Return the list of currently active users

get the certificate of the client having the given ID

long ClientList::getClientID ( long  clientIP  ) 

Get an ID for the new Client

get the client ID id having the given client IP from the client list

char * ClientList::getClientList ( int  clientId,
int &  len 
)

Get the client ID for the given client IP address

get the list of active users clientId gives the ID of the client who is requesting the list of activ users In the list of active users, current user will not be present len is the argument which gives the length of the character array which contains the list of active users

EVP_PKEY * ClientList::getClientPublicKey ( int  clientID  ) 

Get the SSL stream of the given client

Return the public key of the given client

SSL * ClientList::getClientStream ( int  clientID  ) 

get the client certificate; Assumption that no one will make any changes to certificates

get the socket stream of the client whose ID is passed as argument

long ClientList::getNewID (  ) 

Mark the recent client activity

Get a new ID for the Client This method is called during the new client registration for giving the unique client ID

void ClientList::setActive ( long  clientId  ) 

Destructor for releasing the memory allocated to objects

Recent activity found by client set the client as active client


The documentation for this class was generated from the following files:
 All Classes Functions

Generated on 2 Dec 2014 by  doxygen 1.6.1