namespace Akenti class SecureSocketImpl : public SocketImpl

Base abstract class for SecureSocket implementations - inherits from SocketImpl and adds a security context

Inheritance:


Public Methods

virtual ~SecureSocketImpl ()
Destructor
virtual void doConnect ()
Wraps the underlying socket connection
virtual void doAccept (SecureSocketImpl* impl)
Wraps the underlying socket accept
const SSLContext& getSSLContext () const
Returns the security context associated with this SecureSocket
virtual SecureSocketImpl* newInstance (const SSLContext& ctx)
Creates a new instance of a concrete SecureSocketImpl
virtual string paramString () const
Returns a string representation for SecureSocketImpl which is used for debugging purposes

Protected Methods

SecureSocketImpl (const SSLContext& ctx)
Construct a SecureSocketImpl given the SSLContext

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

Base abstract class for SecureSocket implementations - inherits from SocketImpl and adds a security context.
virtual ~SecureSocketImpl()
Destructor

virtual void doConnect()
Wraps the underlying socket connection

virtual void doAccept(SecureSocketImpl* impl)
Wraps the underlying socket accept

const SSLContext& getSSLContext() const
Returns the security context associated with this SecureSocket.
Returns:
ctx - the SSLContext associated with the SecureSocket.

virtual SecureSocketImpl* newInstance(const SSLContext& ctx)
Creates a new instance of a concrete SecureSocketImpl. Used instead of a constructor in order to allow code to create a SecureSocketImpl without knowing the concrete type.
Throws:
- Error if the SSLContext is not recognized.
Returns:
- a new SecureSocketImpl of the same time as this one.
Parameters:
ctx - - the security context to be associated with the secure socket.

virtual string paramString() const
Returns a string representation for SecureSocketImpl which is used for debugging purposes.
Returns:
debugging info

SecureSocketImpl(const SSLContext& ctx)
Construct a SecureSocketImpl given the SSLContext.
Throws:
Error if ctx is not valid


Direct child classes:
OpenSSLSecureSocketImpl
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