connectiontlsserver.h
/*
* Copyright (c) 2009-2023 by Jakob Schröter <js@camaya.net>
* This file is part of the gloox library. http://camaya.net/gloox
*
* This software is distributed under a license. The full license
* agreement can be found in the file LICENSE in this distribution.
* This software may not be copied, modified, sold or distributed
* other than expressed in the named license agreement.
*
* This software is distributed without any warranty.
*/
#ifndef CONNECTIONTLSSERVER_H__
#define CONNECTIONTLSSERVER_H__
#include "macros.h"
#include "logsink.h"
#include "connectionbase.h"
#include "connectiontls.h"
#include "tlsdefault.h"
#include "tlshandler.h"
#include <string>
namespace gloox
{
class ConnectionDataHandler;
class GLOOX_API ConnectionTLSServer : public ConnectionTLS
{
public:
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 );
// reimplemented from ConnectionTLS
virtual ConnectionBase* newInstance() const;
private:
ConnectionTLSServer& operator=( const ConnectionTLSServer& );
};
}
#endif // CONNECTIONTLSSERVER_H__
gloox::ConnectionBase
An abstract base class for a connection.
Definition connectionbase.h:35
gloox::ConnectionBase::server
const std::string & server() const
Definition connectionbase.h:115
gloox::ConnectionDataHandler
This is an abstract base class to receive events from a ConnectionBase-derived object.
Definition connectiondatahandler.h:36
gloox::ConnectionTLSServer::getTLSBase
virtual TLSBase * getTLSBase(TLSHandler *th, const std::string server)
Definition connectiontlsserver.cpp:33
gloox::ConnectionTLSServer::ConnectionTLSServer
ConnectionTLSServer(ConnectionDataHandler *cdh, ConnectionBase *conn, const LogSink &log)
Definition connectiontlsserver.cpp:18
gloox::ConnectionTLSServer::newInstance
virtual ConnectionBase * newInstance() const
Definition connectiontlsserver.cpp:38
gloox::ConnectionTLS::ConnectionTLS
ConnectionTLS(ConnectionDataHandler *cdh, ConnectionBase *conn, const LogSink &log)
Definition connectiontls.cpp:22
gloox::LogSink
An implementation of log sink and source.
Definition logsink.h:39
gloox::TLSBase
An abstract base class for TLS implementations.
Definition tlsbase.h:32
gloox::TLSHandler
An interface that allows for interacting with TLS implementations derived from TLSBase.
Definition tlshandler.h:35
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28