gloox  1.0.20
connectiontlsserver.h
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 #ifndef CONNECTIONTLSSERVER_H__
14 #define CONNECTIONTLSSERVER_H__
15 
16 #include "macros.h"
17 #include "logsink.h"
18 #include "connectionbase.h"
19 #include "connectiontls.h"
20 #include "tlsdefault.h"
21 #include "tlshandler.h"
22 
23 #include <string>
24 
25 namespace gloox
26 {
27 
28  class ConnectionDataHandler;
29 
38  class GLOOX_API ConnectionTLSServer : public ConnectionTLS
39  {
40  public:
50 
58  ConnectionTLSServer( ConnectionBase* conn, const LogSink& log );
59 
63  virtual ~ConnectionTLSServer();
64 
69  virtual TLSBase* getTLSBase( TLSHandler* th, const std::string server );
70 
71  // reimplemented from ConnectionTLS
72  virtual ConnectionBase* newInstance() const;
73 
74  private:
75  ConnectionTLSServer& operator=( const ConnectionTLSServer& );
76 
77  };
78 
79 }
80 
81 #endif // CONNECTIONTLSSERVER_H__
An abstract base class for a connection.
This is an implementation of the server-side of a TLS/SSL connection.
This is an abstract base class to receive events from a ConnectionBase-derived object.
The namespace for the gloox library.
Definition: adhoc.cpp:27
An abstract base class for TLS implementations.
Definition: tlsbase.h:31
An implementation of log sink and source.
Definition: logsink.h:38
An interface that allows for interacting with TLS implementations derived from TLSBase.
Definition: tlshandler.h:34
This is an implementation of a TLS/SSL connection.
Definition: connectiontls.h:51