15void SslServer::incomingConnection(
qintptr socketDescriptor)
18 if (
serverSocket->setSocketDescriptor(socketDescriptor)) {
char * data()
\macro QT_NO_CAST_FROM_BYTEARRAY
QByteArray readAll()
Reads all remaining data from the device, and returns it as a byte array.
qint64 write(const char *data, qint64 len)
Writes at most maxSize bytes of data from data to the device.
QString errorString() const
Returns a human-readable description of the last device error that occurred.
const_reference at(qsizetype i) const noexcept
void append(parameter_type t)
static QList< QSslCertificate > fromPath(const QString &path, QSsl::EncodingFormat format=QSsl::Pem, PatternSyntax syntax=PatternSyntax::FixedString)
The QSslError class provides an SSL error.
The QSslSocket class provides an SSL encrypted socket for both clients and servers.
bool waitForReadyRead(int msecs=30000) override
\reimp
void encrypted()
This signal is emitted when QSslSocket enters encrypted mode.
bool waitForEncrypted(int msecs=30000)
Waits until the socket has completed the SSL handshake and has emitted encrypted(),...
void connectToHostEncrypted(const QString &hostName, quint16 port, OpenMode mode=ReadWrite, NetworkLayerProtocol protocol=AnyIPProtocol)
Starts an encrypted connection to the device hostName on port, using mode as the \l OpenMode.
void ignoreSslErrors(const QList< QSslError > &errors)
This is an overloaded member function, provided for convenience. It differs from the above function o...
DBusConnection const char DBusError * error
serverDtls doHandshake & serverSocket
QList< QSslError > expectedSslErrors
connect(socket, &QSslSocket::encrypted, this, &Receiver::ready)
QList< QSslCertificate > cert
[5]