qsslserver.sip 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // qsslserver.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtNetwork Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. %If (Qt_6_4_0 -)
  22. %If (PyQt_SSL)
  23. class QSslServer : public QTcpServer
  24. {
  25. %TypeHeaderCode
  26. #include <qsslserver.h>
  27. %End
  28. public:
  29. explicit QSslServer(QObject *parent /TransferThis/ = 0);
  30. virtual ~QSslServer();
  31. void setSslConfiguration(const QSslConfiguration &sslConfiguration);
  32. QSslConfiguration sslConfiguration() const;
  33. void setHandshakeTimeout(int timeout);
  34. int handshakeTimeout() const;
  35. signals:
  36. void sslErrors(QSslSocket *socket, const QList<QSslError> &errors);
  37. void peerVerifyError(QSslSocket *socket, const QSslError &error);
  38. void errorOccurred(QSslSocket *socket, QAbstractSocket::SocketError error);
  39. void preSharedKeyAuthenticationRequired(QSslSocket *socket, QSslPreSharedKeyAuthenticator *authenticator);
  40. void alertSent(QSslSocket *socket, QSsl::AlertLevel level, QSsl::AlertType type, const QString &description);
  41. void alertReceived(QSslSocket *socket, QSsl::AlertLevel level, QSsl::AlertType type, const QString &description);
  42. void handshakeInterruptedOnError(QSslSocket *socket, const QSslError &error);
  43. void startedEncryptionHandshake(QSslSocket *socket);
  44. protected:
  45. virtual void incomingConnection(qintptr socket);
  46. };
  47. %End
  48. %End