The Micro C++ Library
micxx::SSLServerSocket Class Reference

A SSLServerSocket represents a Secure Socket Layer (TCP) server endpoint of a StreamSocket. More...

#include <micxx/net/SSLServerSocket.hxx>

Inherits micxx::ServerSocket.

List of all members.

Public Member Functions

 SSLServerSocket (int aserverSessionIDContext=rand())
 Create a new unbound, disconnected SSLServerSocket.
PKCS12StoregetPKCS12Store ()
const PKCS12StoregetPKCS12Store () const
virtual void setCACertificates (const std::string &url)
virtual void setCertificate (const std::string &url)
virtual void setCertificates (const std::string &url, const std::string *passphrase=0)
virtual void setPrivateKey (const std::string &url, const std::string *passphrase=0)

Protected Member Functions

virtual ClientSocketcreateSocket (socket_t rawSocket, SocketAddress *socketAddress)
 Create a ClientSocket instance during accept().

Detailed Description

A SSLServerSocket represents a Secure Socket Layer (TCP) server endpoint of a StreamSocket.

See also:
http://en.wikipedia.org/wiki/Secure_Sockets_Layer
http://www.rfc-editor.org/rfc/rfc5246.txt
Note:
Although SSLServerSocket is derived from Mutex, itself does no locking at all. If you intend to use SSLServerSocket concurrently from different threads, you could use the inherited Mutex to synchronize access to the instance (depending on the scenario in which it is used).
Author:
Norbert Klose
Date:
May, 2009

Constructor & Destructor Documentation

micxx::SSLServerSocket::SSLServerSocket ( int  aserverSessionIDContext = rand())

Create a new unbound, disconnected SSLServerSocket.


Member Function Documentation

virtual ClientSocket* micxx::SSLServerSocket::createSocket ( socket_t  rawSocket,
SocketAddress socketAddress 
) [protected, virtual]

Create a ClientSocket instance during accept().

This implementation just returns a ClientSocket. Derived classes may overwrite this method to return instances derived from ClientSocket.

Parameters:
rawSocketthe socket descriptor
socketAddressthe socket address to be used internally. This socket takes ownership of the allocated SocketAdress and gets responsible for deleting it

Reimplemented from micxx::ServerSocket.

const PKCS12Store& micxx::SSLServerSocket::getPKCS12Store ( ) const [inline]
    {
        return pkcs12Store;
    }
PKCS12Store& micxx::SSLServerSocket::getPKCS12Store ( ) [inline]
    {
        return pkcs12Store;
    }
virtual void micxx::SSLServerSocket::setCACertificates ( const std::string &  url) [virtual]
virtual void micxx::SSLServerSocket::setCertificate ( const std::string &  url) [virtual]
virtual void micxx::SSLServerSocket::setCertificates ( const std::string &  url,
const std::string *  passphrase = 0 
) [virtual]
virtual void micxx::SSLServerSocket::setPrivateKey ( const std::string &  url,
const std::string *  passphrase = 0 
) [virtual]

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