Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MynahSA::SSLConnectionManager Class Reference

#include <sslconnectionmanager.hpp>

Collaboration diagram for MynahSA::SSLConnectionManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SSLConnectionManager (RequestResponseHandler &handler, const StreamConstructor &cons, SSLConnectionVerifier &verifier)
 constructor - hand the constructor a request handler object
void operator() (SSL *ssl)

Detailed Description

class SSLConnectionManager - This class is designed to manage an individual SSL connection.

Design: SSLServer manages ALL incoming connections. When an incomming connection is requested the SSLServer spawns a thread to manage all I/O over that particular SSL connection. The class responsible for handling the connection is SSLConnectionManager. SSLConnectionManager performs some basic stream initialization, then proceeds to stream objects off of the SSL stream and reconstruct them in memory. Once the in-memory image is ready, the request/response handler is invoked to transform an object received off of the stream into a response. The response is then placed back onto the stream for the client to process.

Notes: SSLConnection manager and descendant classes must be thread safe. StreamType must support copy construction.

Definition at line 49 of file sslconnectionmanager.hpp.


Member Function Documentation

void MynahSA::SSLConnectionManager::operator() SSL *  ssl  ) 
 

Operator - this function is invoked when a new connection is established. The SSL connection is passed in, and SSL_accept is performed inside this function.

Parameters:
ssl - the SSL connection.


The documentation for this class was generated from the following file: