Pool Video Switch v2
Software video switch for distributed remote display in a lecture environment
sslserver.h
Go to the documentation of this file.
1 /*
2 # Copyright (c) 2009 - OpenSLX Project, Computer Center University of Freiburg
3 #
4 # This program is free software distributed under the GPL version 2.
5 # See http://openslx.org/COPYING
6 #
7 # If you have any feedback please consult http://openslx.org/feedback and
8 # send your suggestions, praise, or complaints to [email protected]
9 #
10 # General information about OpenSLX can be found at http://openslx.org/
11 # -----------------------------------------------------------------------------
12 # src/net/SslServer.cpp
13 # - provide QTcpServer-like behaviour for SSL
14 # -----------------------------------------------------------------------------
15 */
16 
17 #ifndef SSLSERVER_H_
18 #define SSLSERVER_H_
19 
20 #include <QHash>
21 #include <QtNetwork/QTcpServer>
22 #include <QtNetwork/QSslError>
23 
24 class QSslSocket;
25 class QTimer;
26 
30 class SslServer : public QTcpServer
31 {
32  Q_OBJECT
33 
34 private slots:
35  void sslErrors ( const QList<QSslError> & errors );
36 
37 public:
38  explicit SslServer(QObject *parent);
39  ~SslServer() override;
40 
41 protected:
42  void incomingConnection(qintptr handle) override;
43  QHash<QSslSocket*, qint64> _pending; // Queue for connected but unencrypted connections
44  QTimer* _timer;
45 };
46 
47 #endif /* SSLSERVER_H_ */
void incomingConnection(qintptr handle) override
Handle incomming connection.
Definition: sslserver.cpp:59
void sslErrors(const QList< QSslError > &errors)
Definition: sslserver.cpp:97
QTimer * _timer
Definition: sslserver.h:44
SslServer(QObject *parent)
Definition: sslserver.cpp:24
QHash< QSslSocket *, qint64 > _pending
Definition: sslserver.h:43
Class for handling ssl server connections.
Definition: sslserver.h:30
~SslServer() override
Definition: sslserver.cpp:45