8#include <QtNetwork/qtnetworkglobal.h>
9#include <QtCore/qlist.h>
11# include <QtNetwork/qtcpsocket.h>
12# include <QtNetwork/qsslerror.h>
54 OpenMode openMode = ReadWrite)
override;
72 int peerVerifyDepth()
const;
73 void setPeerVerifyDepth(
int depth);
76 void setPeerVerifyName(
const QString &hostName);
82 void close()
override;
83 bool atEnd()
const override;
89 qint64 encryptedBytesAvailable()
const;
90 qint64 encryptedBytesToWrite()
const;
117 bool waitForEncrypted(
int msecs = 30000);
124 static bool supportsSsl();
125 static long sslLibraryVersionNumber();
126 static QString sslLibraryVersionString();
127 static long sslLibraryBuildVersionNumber();
128 static QString sslLibraryBuildVersionString();
131 static QString activeBackend();
141 void continueInterruptedHandshake();
144 void startClientEncryption();
145 void startServerEncryption();
The QAbstractSocket class provides the base functionality common to all socket types.
SocketState
This enum describes the different states in which a socket can be.
virtual void setReadBufferSize(qint64 size)
Sets the size of QAbstractSocket's internal read buffer to be size bytes.
virtual void setSocketOption(QAbstractSocket::SocketOption option, const QVariant &value)
virtual QVariant socketOption(QAbstractSocket::SocketOption option)
bool waitForReadyRead(int msecs=30000) override
This function blocks until new data is available for reading and the \l{QIODevice::}{readyRead()} sig...
qint64 bytesToWrite() const override
Returns the number of bytes that are waiting to be written.
bool waitForBytesWritten(int msecs=30000) override
\reimp
virtual bool waitForDisconnected(int msecs=30000)
Waits until the socket has disconnected, up to msecs milliseconds.
qint64 bytesAvailable() const override
Returns the number of incoming bytes that are waiting to be read.
qint64 skipData(qint64 maxSize) override
\reimp
virtual bool waitForConnected(int msecs=30000)
Waits until the socket is connected, up to msecs milliseconds.
virtual void disconnectFromHost()
Attempts to close the socket.
qint64 writeData(const char *data, qint64 len) override
\reimp
void close() override
Closes the I/O device for the socket and calls disconnectFromHost() to close the socket's connection.
SocketError
This enum describes the socket errors that can occur.
virtual void connectToHost(const QString &hostName, quint16 port, OpenMode mode=ReadWrite, NetworkLayerProtocol protocol=AnyIPProtocol)
Attempts to make a connection to hostName on the given port.
virtual bool setSocketDescriptor(qintptr socketDescriptor, SocketState state=ConnectedState, OpenMode openMode=ReadWrite)
Initializes QAbstractSocket with the native socket descriptor socketDescriptor.
virtual bool atEnd() const
Returns true if the current read and write position is at the end of the device (i....
virtual bool canReadLine() const
Returns true if a complete line of data can be read from the device; otherwise returns false.
This class represents Online Certificate Status Protocol response.
The QSslCertificate class provides a convenient API for an X509 certificate.
The QSslCipher class represents an SSL cryptographic cipher.
The QSslConfiguration class holds the configuration and state of an SSL connection.
The QSslError class provides an SSL error.
The QSslKey class provides an interface for private and public keys.
The QSslPreSharedKeyAuthenticator class provides authentication data for pre shared keys (PSK) cipher...
The QSslSocket class provides an SSL encrypted socket for both clients and servers.
void sslErrors(const QList< QSslError > &errors)
QSslSocket emits this signal after the SSL handshake to indicate that one or more errors have occurre...
void encryptedBytesWritten(qint64 totalBytes)
void alertSent(QSsl::AlertLevel level, QSsl::AlertType type, const QString &description)
QSslSocket emits this signal if an alert message was sent to a peer.
void peerVerifyError(const QSslError &error)
SslMode
Describes the connection modes available for QSslSocket.
void newSessionTicketReceived()
void preSharedKeyAuthenticationRequired(QSslPreSharedKeyAuthenticator *authenticator)
void encrypted()
This signal is emitted when QSslSocket enters encrypted mode.
void alertReceived(QSsl::AlertLevel level, QSsl::AlertType type, const QString &description)
QSslSocket emits this signal if an alert message was received from a peer.
void handshakeInterruptedOnError(const QSslError &error)
QSslSocket emits this signal if a certificate verification error was found and if early error reporti...
void modeChanged(QSslSocket::SslMode newMode)
This signal is emitted when QSslSocket changes from \l QSslSocket::UnencryptedMode to either \l QSslS...
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QTcpSocket class provides a TCP socket.
KeyAlgorithm
Describes the different key algorithms supported by QSslKey.
EncodingFormat
Describes supported encoding formats for certificates and keys.
SslProtocol
Describes the protocol of the cipher.
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
static bool isEncrypted(const my_mach_header *header)
GLint GLenum GLsizei GLsizei GLsizei depth
GLenum GLuint GLint level
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLint GLsizei GLsizei GLenum format
reply ignoreSslErrors(expectedSslErrors)
config setProtocol(QSsl::TlsV1_2)
sslSocket setSslConfiguration(config)
socket connectToHostEncrypted("imap.example.com", 993)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent