|
gloox
1.0
|
#include <connectiontlsserver.h>

Public Member Functions | |
| ConnectionTLSServer (ConnectionDataHandler *cdh, ConnectionBase *conn, const LogSink &log) | |
| ConnectionTLSServer (ConnectionBase *conn, const LogSink &log) | |
| virtual | ~ConnectionTLSServer () |
| virtual TLSBase * | getTLSBase (TLSHandler *th, const std::string server) |
| virtual ConnectionBase * | newInstance () const |
Public Member Functions inherited from ConnectionTLS | |
| ConnectionTLS (ConnectionDataHandler *cdh, ConnectionBase *conn, const LogSink &log) | |
| ConnectionTLS (ConnectionBase *conn, const LogSink &log) | |
| virtual | ~ConnectionTLS () |
| void | setCACerts (const StringList &cacerts) |
| const CertInfo & | fetchTLSInfo () const |
| void | setClientCert (const std::string &clientKey, const std::string &clientCerts) |
| void | setConnectionImpl (ConnectionBase *connection) |
| void | registerTLSHandler (TLSHandler *th) |
| virtual ConnectionError | connect () |
| virtual ConnectionError | recv (int timeout=-1) |
| virtual bool | send (const std::string &data) |
| virtual ConnectionError | receive () |
| virtual void | disconnect () |
| virtual void | cleanup () |
| virtual void | getStatistics (long int &totalIn, long int &totalOut) |
| virtual void | handleReceivedData (const ConnectionBase *connection, const std::string &data) |
| virtual void | handleConnect (const ConnectionBase *connection) |
| virtual void | handleDisconnect (const ConnectionBase *connection, ConnectionError reason) |
| virtual void | handleEncryptedData (const TLSBase *, const std::string &data) |
| virtual void | handleDecryptedData (const TLSBase *, const std::string &data) |
| virtual void | handleHandshakeResult (const TLSBase *base, bool success, CertInfo &certinfo) |
Public Member Functions inherited from TLSHandler | |
| virtual | ~TLSHandler () |
Public Member Functions inherited from ConnectionBase | |
| ConnectionBase (ConnectionDataHandler *cdh) | |
| virtual | ~ConnectionBase () |
| ConnectionState | state () const |
| void | registerConnectionDataHandler (ConnectionDataHandler *cdh) |
| void | setServer (const std::string &server, int port=-1) |
| const std::string & | server () const |
| int | port () const |
| virtual int | localPort () const |
| virtual const std::string | localInterface () const |
Public Member Functions inherited from ConnectionDataHandler | |
| virtual | ~ConnectionDataHandler () |
Additional Inherited Members | |
Protected Attributes inherited from ConnectionBase | |
| ConnectionDataHandler * | m_handler |
| ConnectionState | m_state |
| std::string | m_server |
| int | m_port |
This is an implementation of the server-side of a TLS/SSL connection.
You should not need to use this class directly.
Definition at line 38 of file connectiontlsserver.h.
| ConnectionTLSServer | ( | ConnectionDataHandler * | cdh, |
| ConnectionBase * | conn, | ||
| const LogSink & | log | ||
| ) |
Constructs a new ConnectionTLSServer object.
| cdh | The ConnectionDataHandler that will be notified of events from this connection |
| conn | A transport connection. It should be an established connection from a client that is about to perform a TLS handshake. ConnectionTLSServer will own the transport connection and delete it in its destructor. |
| log | The log target. Obtain it from ClientBase::logInstance(). |
Definition at line 18 of file connectiontlsserver.cpp.
| ConnectionTLSServer | ( | ConnectionBase * | conn, |
| const LogSink & | log | ||
| ) |
Constructs a new ConnectionTLSServer object.
| conn | A transport connection. It should be an established connection from a client that is about to perform a TLS handshake. ConnectionTLSServer will own the transport connection and delete it in its destructor. |
| log | The log target. Obtain it from ClientBase::logInstance(). |
Definition at line 24 of file connectiontlsserver.cpp.
|
virtual |
Virtual Destructor.
Definition at line 29 of file connectiontlsserver.cpp.
|
virtual |
Returns a TLS server.
Reimplemented from ConnectionTLS.
Definition at line 33 of file connectiontlsserver.cpp.
|
virtual |
This function returns a new instance of the current ConnectionBase-derived object. The idea is to be able to 'clone' ConnectionBase-derived objects without knowing of what type they are exactly.
Reimplemented from ConnectionTLS.
Definition at line 38 of file connectiontlsserver.cpp.
1.8.1.2