gloox  1.0.22
connectiontlsserver.cpp
1 /*
2  * Copyright (c) 2009-2017 by Jakob Schröter <js@camaya.net>
3  * This file is part of the gloox library. http://camaya.net/gloox
4  *
5  * This software is distributed under a license. The full license
6  * agreement can be found in the file LICENSE in this distribution.
7  * This software may not be copied, modified, sold or distributed
8  * other than expressed in the named license agreement.
9  *
10  * This software is distributed without any warranty.
11  */
12 
13 #include "connectiontlsserver.h"
14 
15 namespace gloox
16 {
17 
19  const LogSink& log )
20  : ConnectionTLS( cdh, conn, log )
21  {
22  }
23 
25  : ConnectionTLS( conn, log )
26  {
27  }
28 
30  {
31  }
32 
33  TLSBase* ConnectionTLSServer::getTLSBase( TLSHandler* th, const std::string server )
34  {
36  }
37 
39  {
40  ConnectionBase* newConn = 0;
41  if( m_connection )
42  newConn = m_connection->newInstance();
43  return new ConnectionTLSServer( m_handler, newConn, m_log );
44  }
45 
46 }
gloox::ConnectionDataHandler
This is an abstract base class to receive events from a ConnectionBase-derived object.
Definition: connectiondatahandler.h:36
gloox::TLSDefault
This is an abstraction of the various TLS backends.
Definition: tlsdefault.h:34
gloox::TLSHandler
An interface that allows for interacting with TLS implementations derived from TLSBase.
Definition: tlshandler.h:35
gloox::ConnectionBase::m_handler
ConnectionDataHandler * m_handler
Definition: connectionbase.h:152
gloox::ConnectionTLS
This is an implementation of a TLS/SSL connection.
Definition: connectiontls.h:52
gloox::LogSink
An implementation of log sink and source.
Definition: logsink.h:39
gloox::ConnectionTLSServer::newInstance
virtual ConnectionBase * newInstance() const
Definition: connectiontlsserver.cpp:38
gloox::ConnectionBase::newInstance
virtual ConnectionBase * newInstance() const =0
gloox
The namespace for the gloox library.
Definition: adhoc.cpp:28
gloox::ConnectionBase
An abstract base class for a connection.
Definition: connectionbase.h:35
gloox::TLSDefault::VerifyingServer
@ VerifyingServer
Definition: tlsdefault.h:46
gloox::ConnectionTLSServer::getTLSBase
virtual TLSBase * getTLSBase(TLSHandler *th, const std::string server)
Definition: connectiontlsserver.cpp:33
gloox::TLSBase
An abstract base class for TLS implementations.
Definition: tlsbase.h:32
gloox::ConnectionBase::server
const std::string & server() const
Definition: connectionbase.h:115
gloox::ConnectionTLSServer::ConnectionTLSServer
ConnectionTLSServer(ConnectionDataHandler *cdh, ConnectionBase *conn, const LogSink &log)
Definition: connectiontlsserver.cpp:18
gloox::ConnectionTLSServer::~ConnectionTLSServer
virtual ~ConnectionTLSServer()
Definition: connectiontlsserver.cpp:29