#include <sslconnectionmanager.hpp>
Collaboration diagram for MynahSA::SSLConnectionManager:
Public Member Functions | |
SSLConnectionManager (RequestResponseHandler &handler, const StreamConstructor &cons, SSLConnectionVerifier &verifier) | |
constructor - hand the constructor a request handler object | |
void | operator() (SSL *ssl) |
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.
|
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.
|