QXmppSslServer Class

The QXmppSslServer class represents an SSL-enabled TCP server. More...

Header: #include <QXmppServer.h>
Inherits: QTcpServer

Public Functions

QXmppSslServer(QObject *parent = nullptr)
void addCaCertificates(const QList<QSslCertificate> &certificates)
void setLocalCertificate(const QSslCertificate &certificate)
void setPrivateKey(const QSslKey &key)

Signals

void newConnection(QSslSocket *socket)

Detailed Description

Member Function Documentation

QXmppSslServer::QXmppSslServer(QObject *parent = nullptr)

Constructs a new SSL server instance.

parent.

void QXmppSslServer::addCaCertificates(const QList<QSslCertificate> &certificates)

Adds the given certificates to the CA certificate database to be used for incoming connections.

certificates.

[signal] void QXmppSslServer::newConnection(QSslSocket *socket)

This signal is emitted when a new connection is established.

socket.

void QXmppSslServer::setLocalCertificate(const QSslCertificate &certificate)

Sets the local certificate to be used for incoming connections.

void QXmppSslServer::setPrivateKey(const QSslKey &key)

Sets the local private key to be used for incoming connections.