connectiontlsserver.cpp
/*
* 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.
*/
#include "connectiontlsserver.h"
namespace gloox
{
ConnectionTLSServer::ConnectionTLSServer( ConnectionDataHandler* cdh, ConnectionBase* conn,
const LogSink& log )
: ConnectionTLS( cdh, conn, log )
{
}
ConnectionTLSServer::ConnectionTLSServer( ConnectionBase* conn, const LogSink& log )
: ConnectionTLS( conn, log )
{
}
ConnectionTLSServer::~ConnectionTLSServer()
{
}
TLSBase* ConnectionTLSServer::getTLSBase( TLSHandler* th, const std::string server )
{
return new TLSDefault( th, server, TLSDefault::VerifyingServer );
}
ConnectionBase* ConnectionTLSServer::newInstance() const
{
ConnectionBase* newConn = 0;
if( m_connection )
newConn = m_connection->newInstance();
return new ConnectionTLSServer( m_handler, newConn, m_log );
}
}
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::ConnectionBase::newInstance
virtual ConnectionBase * newInstance() const =0
gloox::ConnectionBase::m_handler
ConnectionDataHandler * m_handler
Definition connectionbase.h:152
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::~ConnectionTLSServer
virtual ~ConnectionTLSServer()
Definition connectiontlsserver.cpp:29
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::TLSDefault
This is an abstraction of the various TLS backends.
Definition tlsdefault.h:34
gloox::TLSDefault::VerifyingServer
@ VerifyingServer
Definition tlsdefault.h:46
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