namespace Akenti class OpenSSLSecureSocketImpl : public SecureSocketImpl

This class implements the methods specific to OpenSSLsecureSockets and inherits methods from SerureSocketImpl and SocketImpl

Inheritance:


Public Methods

OpenSSLSecureSocketImpl (const SSLContext& ctx)
Constructor - takes a security context, duplicates it and saves it in the new OpenSSLSecureSocketImpl
~OpenSSLSecureSocketImpl ()
Destructor - free the SSL structure and destroys this object
SecureSocketImpl* newInstance (const SSLContext& ctx)
Creates a new SecureSocketImpl
void doConnect ()
Provides the SocketImpl with a secure socket (an SSL structure containing a connected Unix socket) that has been connected to the host and port associated with the SocketImpl
void doAccept (SecureSocketImpl *impl)

Inherited from SecureSocketImpl:

Public Methods

const SSLContext& getSSLContext() const
virtual string paramString() const

Inherited from SocketImpl:

Public Methods

void setHost(const string& host)
const string& getHost() const
void setPort(int port)
int getPort() const
virtual void doListen(int backlog)
virtual void doClose()
InputStream& getInputStream()
OutputStream& getOutputStream()

Protected Methods

int openConnection()
int bindToAddress()
int acceptConnection(SocketImpl* impl)
virtual istream* doGetInputStream()
virtual ostream* doGetOutputStream()

Documentation

This class implements the methods specific to OpenSSLsecureSockets and inherits methods from SerureSocketImpl and SocketImpl. It contains a pointer to an openssl SSL structure and wraps openssl socket functions.
OpenSSLSecureSocketImpl(const SSLContext& ctx)
Constructor - takes a security context, duplicates it and saves it in the new OpenSSLSecureSocketImpl.
Throws:
Error don't recognize the SSLContext
Error allocation failed
Parameters:
SSLContext - & ctx - a security context

~OpenSSLSecureSocketImpl()
Destructor - free the SSL structure and destroys this object

SecureSocketImpl* newInstance(const SSLContext& ctx)
Creates a new SecureSocketImpl. This interface is also defined in the superclass, SecureSocketImpl so that an application can create a new SocketImpl without knowing what kind it has.
Throws:
Error don't recognize the SSLContext
Error allocation failed
Parameters:
SSLContext - & ctx - a security context

void doConnect()
Provides the SocketImpl with a secure socket (an SSL structure containing a connected Unix socket) that has been connected to the host and port associated with the SocketImpl. The IOHandler for the connected fd is kept in the SocketImpl.
Throws:
SecurityException if the connection fails

void doAccept(SecureSocketImpl *impl)
Throws:
SecurityException if the handshake fails


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de