API reference - Class QSslSocket

Notation used in Ruby API documentation

Module: QtNetwork

Description: Binding of QSslSocket

Class hierarchy: QSslSocket » QTcpSocket » QAbstractSocket » QIODevice » QObject

Sub-classes: PeerVerifyMode, QFlags_PeerVerifyMode, SslMode, QFlags_SslMode

Public constructors

new QSslSocketnew(QObject ptr parent = 0)Constructor QSslSocket::QSslSocket(QObject *parent)

Public methods

void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
voidabortMethod void QSslSocket::abort()
[signal]voidaboutToCloseSignal declaration for QSslSocket::aboutToClose()
voidaddCaCertificate(const QSslCertificate certificate)Method void QSslSocket::addCaCertificate(const QSslCertificate &certificate)
booladdCaCertificates(string path,
const QSsl_EncodingFormat format = QSsl::Pem,
const QRegExp_PatternSyntax syntax = QRegExp::FixedString)
Method bool QSslSocket::addCaCertificates(const QString &path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax)
voidaddCaCertificates(QSslCertificate[] certificates)Method void QSslSocket::addCaCertificates(const QList<QSslCertificate> &certificates)
[const]boolatEndMethod bool QSslSocket::atEnd()
[const]long longbytesAvailableMethod qint64 QSslSocket::bytesAvailable()
[const]long longbytesToWriteMethod qint64 QSslSocket::bytesToWrite()
[signal]voidbytesWritten(long long bytes)Signal declaration for QSslSocket::bytesWritten(qint64 bytes)
[const]QSslCertificate[]caCertificatesMethod QList<QSslCertificate> QSslSocket::caCertificates()
voidcaCertificates=(QSslCertificate[] certificates)Method void QSslSocket::setCaCertificates(const QList<QSslCertificate> &certificates)
[const]boolcanReadLineMethod bool QSslSocket::canReadLine()
[const]QSslCipher[]ciphersMethod QList<QSslCipher> QSslSocket::ciphers()
voidciphers=(QSslCipher[] ciphers)Method void QSslSocket::setCiphers(const QList<QSslCipher> &ciphers)
voidciphers=(string ciphers)Method void QSslSocket::setCiphers(const QString &ciphers)
voidcloseMethod void QSslSocket::close()
voidconnectToHost(const QHostAddress address,
unsigned short port,
QIODevice_QFlags_OpenModeFlag mode = QIODevice::ReadWrite)
Method void QSslSocket::connectToHost(const QHostAddress &address, quint16 port, QFlags<QIODevice::OpenModeFlag> mode)
voidconnectToHost(string hostName,
unsigned short port,
QIODevice_QFlags_OpenModeFlag openMode = QIODevice::ReadWrite,
const QAbstractSocket_NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol)
Method void QSslSocket::connectToHost(const QString &hostName, quint16 port, QFlags<QIODevice::OpenModeFlag> openMode, QAbstractSocket::NetworkLayerProtocol protocol)
voidconnectToHostEncrypted(string hostName,
unsigned short port,
QIODevice_QFlags_OpenModeFlag mode = QIODevice::ReadWrite,
const QAbstractSocket_NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol)
Method void QSslSocket::connectToHostEncrypted(const QString &hostName, quint16 port, QFlags<QIODevice::OpenModeFlag> mode, QAbstractSocket::NetworkLayerProtocol protocol)
voidconnectToHostEncrypted(string hostName,
unsigned short port,
string sslPeerName,
QIODevice_QFlags_OpenModeFlag mode = QIODevice::ReadWrite,
const QAbstractSocket_NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol)
Method void QSslSocket::connectToHostEncrypted(const QString &hostName, quint16 port, const QString &sslPeerName, QFlags<QIODevice::OpenModeFlag> mode, QAbstractSocket::NetworkLayerProtocol protocol)
[signal]voidconnectedSignal declaration for QSslSocket::connected()
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QSslSocket::destroyed(QObject *)
voiddisconnectFromHostMethod void QSslSocket::disconnectFromHost()
[signal]voiddisconnectedSignal declaration for QSslSocket::disconnected()
[signal]voidencryptedSignal declaration for QSslSocket::encrypted()
[const]long longencryptedBytesAvailableMethod qint64 QSslSocket::encryptedBytesAvailable()
[const]long longencryptedBytesToWriteMethod qint64 QSslSocket::encryptedBytesToWrite()
[signal]voidencryptedBytesWritten(long long totalBytes)Signal declaration for QSslSocket::encryptedBytesWritten(qint64 totalBytes)
[signal]voiderror_sig(const QAbstractSocket_SocketError arg1)Signal declaration for QSslSocket::error(QAbstractSocket::SocketError)
boolflushMethod bool QSslSocket::flush()
[signal]voidhostFoundSignal declaration for QSslSocket::hostFound()
voidignoreSslErrors(QSslError[] errors)Method void QSslSocket::ignoreSslErrors(const QList<QSslError> &errors)
voidignoreSslErrorsMethod void QSslSocket::ignoreSslErrors()
[const]boolisEncrypted?Method bool QSslSocket::isEncrypted()
[const]QSslCertificatelocalCertificateMethod QSslCertificate QSslSocket::localCertificate()
voidlocalCertificate=(const QSslCertificate certificate)Method void QSslSocket::setLocalCertificate(const QSslCertificate &certificate)
[const]QSslCertificate[]localCertificateChainMethod QList<QSslCertificate> QSslSocket::localCertificateChain()
voidlocalCertificateChain=(QSslCertificate[] localChain)Method void QSslSocket::setLocalCertificateChain(const QList<QSslCertificate> &localChain)
[const]QSslSocket_SslModemodeMethod QSslSocket::SslMode QSslSocket::mode()
[signal]voidmodeChanged(const QSslSocket_SslMode newMode)Signal declaration for QSslSocket::modeChanged(QSslSocket::SslMode newMode)
[signal]voidobjectNameChanged(string objectName)Signal declaration for QSslSocket::objectNameChanged(const QString &objectName)
[const]QSslCertificatepeerCertificateMethod QSslCertificate QSslSocket::peerCertificate()
[const]QSslCertificate[]peerCertificateChainMethod QList<QSslCertificate> QSslSocket::peerCertificateChain()
[const]intpeerVerifyDepthMethod int QSslSocket::peerVerifyDepth()
voidpeerVerifyDepth=(int depth)Method void QSslSocket::setPeerVerifyDepth(int depth)
[signal]voidpeerVerifyError(const QSslError error)Signal declaration for QSslSocket::peerVerifyError(const QSslError &error)
[const]QSslSocket_PeerVerifyModepeerVerifyModeMethod QSslSocket::PeerVerifyMode QSslSocket::peerVerifyMode()
voidpeerVerifyMode=(const QSslSocket_PeerVerifyMode mode)Method void QSslSocket::setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)
[const]stringpeerVerifyNameMethod QString QSslSocket::peerVerifyName()
voidpeerVerifyName=(string hostName)Method void QSslSocket::setPeerVerifyName(const QString &hostName)
[signal]voidpreSharedKeyAuthenticationRequired(QSslPreSharedKeyAuthenticator ptr authenticator)Signal declaration for QSslSocket::preSharedKeyAuthenticationRequired(QSslPreSharedKeyAuthenticator *authenticator)
[const]QSslKeyprivateKeyMethod QSslKey QSslSocket::privateKey()
voidprivateKey=(const QSslKey key)Method void QSslSocket::setPrivateKey(const QSslKey &key)
[const]QSsl_SslProtocolprotocolMethod QSsl::SslProtocol QSslSocket::protocol()
voidprotocol=(const QSsl_SslProtocol protocol)Method void QSslSocket::setProtocol(QSsl::SslProtocol protocol)
[signal]voidproxyAuthenticationRequired(const QNetworkProxy proxy,
QAuthenticator ptr authenticator)
Signal declaration for QSslSocket::proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator)
voidreadBufferSize=(long long size)Method void QSslSocket::setReadBufferSize(qint64 size)
[signal]voidreadChannelFinishedSignal declaration for QSslSocket::readChannelFinished()
[signal]voidreadyReadSignal declaration for QSslSocket::readyRead()
voidresumeMethod void QSslSocket::resume()
[const]QSslCiphersessionCipherMethod QSslCipher QSslSocket::sessionCipher()
[const]QSsl_SslProtocolsessionProtocolMethod QSsl::SslProtocol QSslSocket::sessionProtocol()
voidsetCaCertificates(QSslCertificate[] certificates)Method void QSslSocket::setCaCertificates(const QList<QSslCertificate> &certificates)
voidsetCiphers(QSslCipher[] ciphers)Method void QSslSocket::setCiphers(const QList<QSslCipher> &ciphers)
voidsetCiphers(string ciphers)Method void QSslSocket::setCiphers(const QString &ciphers)
voidsetLocalCertificate(const QSslCertificate certificate)Method void QSslSocket::setLocalCertificate(const QSslCertificate &certificate)
voidsetLocalCertificate(string fileName,
const QSsl_EncodingFormat format = QSsl::Pem)
Method void QSslSocket::setLocalCertificate(const QString &fileName, QSsl::EncodingFormat format)
voidsetLocalCertificateChain(QSslCertificate[] localChain)Method void QSslSocket::setLocalCertificateChain(const QList<QSslCertificate> &localChain)
voidsetPeerVerifyDepth(int depth)Method void QSslSocket::setPeerVerifyDepth(int depth)
voidsetPeerVerifyMode(const QSslSocket_PeerVerifyMode mode)Method void QSslSocket::setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)
voidsetPeerVerifyName(string hostName)Method void QSslSocket::setPeerVerifyName(const QString &hostName)
voidsetPrivateKey(const QSslKey key)Method void QSslSocket::setPrivateKey(const QSslKey &key)
voidsetPrivateKey(string fileName,
const QSsl_KeyAlgorithm algorithm = QSsl::Rsa,
const QSsl_EncodingFormat format = QSsl::Pem,
bytes passPhrase = QByteArray())
Method void QSslSocket::setPrivateKey(const QString &fileName, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, const QByteArray &passPhrase)
voidsetProtocol(const QSsl_SslProtocol protocol)Method void QSslSocket::setProtocol(QSsl::SslProtocol protocol)
voidsetReadBufferSize(long long size)Method void QSslSocket::setReadBufferSize(qint64 size)
boolsetSocketDescriptor(long long socketDescriptor,
const QAbstractSocket_SocketState state = QAbstractSocket::ConnectedState,
QIODevice_QFlags_OpenModeFlag openMode = QIODevice::ReadWrite)
Method bool QSslSocket::setSocketDescriptor(QIntegerForSizeof<void*>::Signed socketDescriptor, QAbstractSocket::SocketState state, QFlags<QIODevice::OpenModeFlag> openMode)
voidsetSocketOption(const QAbstractSocket_SocketOption option,
variant value)
Method void QSslSocket::setSocketOption(QAbstractSocket::SocketOption option, const QVariant &value)
voidsetSslConfiguration(const QSslConfiguration config)Method void QSslSocket::setSslConfiguration(const QSslConfiguration &config)
variantsocketOption(const QAbstractSocket_SocketOption option)Method QVariant QSslSocket::socketOption(QAbstractSocket::SocketOption option)
[const]QSslConfigurationsslConfigurationMethod QSslConfiguration QSslSocket::sslConfiguration()
voidsslConfiguration=(const QSslConfiguration config)Method void QSslSocket::setSslConfiguration(const QSslConfiguration &config)
[const]QSslError[]sslErrorsMethod QList<QSslError> QSslSocket::sslErrors()
[signal]voidsslErrors_sig(QSslError[] errors)Signal declaration for QSslSocket::sslErrors(const QList<QSslError> &errors)
voidstartClientEncryptionMethod void QSslSocket::startClientEncryption()
voidstartServerEncryptionMethod void QSslSocket::startServerEncryption()
[signal]voidstateChanged(const QAbstractSocket_SocketState arg1)Signal declaration for QSslSocket::stateChanged(QAbstractSocket::SocketState)
boolwaitForBytesWritten(int msecs = 30000)Method bool QSslSocket::waitForBytesWritten(int msecs)
boolwaitForConnected(int msecs = 30000)Method bool QSslSocket::waitForConnected(int msecs)
boolwaitForDisconnected(int msecs = 30000)Method bool QSslSocket::waitForDisconnected(int msecs)
boolwaitForEncrypted(int msecs = 30000)Method bool QSslSocket::waitForEncrypted(int msecs)
boolwaitForReadyRead(int msecs = 30000)Method bool QSslSocket::waitForReadyRead(int msecs)

Public static methods and constants

[static,const]QSslSocket_PeerVerifyModeAutoVerifyPeerEnum constant QSslSocket::AutoVerifyPeer
[static,const]QSslSocket_PeerVerifyModeQueryPeerEnum constant QSslSocket::QueryPeer
[static,const]QSslSocket_SslModeSslClientModeEnum constant QSslSocket::SslClientMode
[static,const]QSslSocket_SslModeSslServerModeEnum constant QSslSocket::SslServerMode
[static,const]QSslSocket_SslModeUnencryptedModeEnum constant QSslSocket::UnencryptedMode
[static,const]QSslSocket_PeerVerifyModeVerifyNoneEnum constant QSslSocket::VerifyNone
[static,const]QSslSocket_PeerVerifyModeVerifyPeerEnum constant QSslSocket::VerifyPeer
voidaddDefaultCaCertificate(const QSslCertificate certificate)Static method void QSslSocket::addDefaultCaCertificate(const QSslCertificate &certificate)
booladdDefaultCaCertificates(string path,
const QSsl_EncodingFormat format = QSsl::Pem,
const QRegExp_PatternSyntax syntax = QRegExp::FixedString)
Static method bool QSslSocket::addDefaultCaCertificates(const QString &path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax)
voidaddDefaultCaCertificates(QSslCertificate[] certificates)Static method void QSslSocket::addDefaultCaCertificates(const QList<QSslCertificate> &certificates)
QSslCertificate[]defaultCaCertificatesStatic method QList<QSslCertificate> QSslSocket::defaultCaCertificates()
voiddefaultCaCertificates=(QSslCertificate[] certificates)Static method void QSslSocket::setDefaultCaCertificates(const QList<QSslCertificate> &certificates)
QSslCipher[]defaultCiphersStatic method QList<QSslCipher> QSslSocket::defaultCiphers()
voiddefaultCiphers=(QSslCipher[] ciphers)Static method void QSslSocket::setDefaultCiphers(const QList<QSslCipher> &ciphers)
voidsetDefaultCaCertificates(QSslCertificate[] certificates)Static method void QSslSocket::setDefaultCaCertificates(const QList<QSslCertificate> &certificates)
voidsetDefaultCiphers(QSslCipher[] ciphers)Static method void QSslSocket::setDefaultCiphers(const QList<QSslCipher> &ciphers)
longsslLibraryBuildVersionNumberStatic method long int QSslSocket::sslLibraryBuildVersionNumber()
stringsslLibraryBuildVersionStringStatic method QString QSslSocket::sslLibraryBuildVersionString()
longsslLibraryVersionNumberStatic method long int QSslSocket::sslLibraryVersionNumber()
stringsslLibraryVersionStringStatic method QString QSslSocket::sslLibraryVersionString()
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
QSslCipher[]supportedCiphersStatic method QList<QSslCipher> QSslSocket::supportedCiphers()
boolsupportsSslStatic method bool QSslSocket::supportsSsl()
QSslCertificate[]systemCaCertificatesStatic method QList<QSslCertificate> QSslSocket::systemCaCertificates()
stringtr(string s,
string c = nullptr,
int n = -1)
Static method QString QSslSocket::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = nullptr,
int n = -1)
Static method QString QSslSocket::trUtf8(const char *s, const char *c, int n)

Detailed description

AutoVerifyPeer

Signature: [static,const] QSslSocket_PeerVerifyMode AutoVerifyPeer

Description: Enum constant QSslSocket::AutoVerifyPeer

Python specific notes:
The object exposes a readable attribute 'AutoVerifyPeer'. This is the getter.

QueryPeer

Signature: [static,const] QSslSocket_PeerVerifyMode QueryPeer

Description: Enum constant QSslSocket::QueryPeer

Python specific notes:
The object exposes a readable attribute 'QueryPeer'. This is the getter.

SslClientMode

Signature: [static,const] QSslSocket_SslMode SslClientMode

Description: Enum constant QSslSocket::SslClientMode

Python specific notes:
The object exposes a readable attribute 'SslClientMode'. This is the getter.

SslServerMode

Signature: [static,const] QSslSocket_SslMode SslServerMode

Description: Enum constant QSslSocket::SslServerMode

Python specific notes:
The object exposes a readable attribute 'SslServerMode'. This is the getter.

UnencryptedMode

Signature: [static,const] QSslSocket_SslMode UnencryptedMode

Description: Enum constant QSslSocket::UnencryptedMode

Python specific notes:
The object exposes a readable attribute 'UnencryptedMode'. This is the getter.

VerifyNone

Signature: [static,const] QSslSocket_PeerVerifyMode VerifyNone

Description: Enum constant QSslSocket::VerifyNone

Python specific notes:
The object exposes a readable attribute 'VerifyNone'. This is the getter.

VerifyPeer

Signature: [static,const] QSslSocket_PeerVerifyMode VerifyPeer

Description: Enum constant QSslSocket::VerifyPeer

Python specific notes:
The object exposes a readable attribute 'VerifyPeer'. This is the getter.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

abort

Signature: void abort

Description: Method void QSslSocket::abort()

aboutToClose

Signature: [signal] void aboutToClose

Description: Signal declaration for QSslSocket::aboutToClose()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'aboutToClose'. This is the getter.
The object exposes a writable attribute 'aboutToClose'. This is the setter.

addCaCertificate

Signature: void addCaCertificate (const QSslCertificate certificate)

Description: Method void QSslSocket::addCaCertificate(const QSslCertificate &certificate)

addCaCertificates

(1) Signature: bool addCaCertificates (string path, const QSsl_EncodingFormat format = QSsl::Pem, const QRegExp_PatternSyntax syntax = QRegExp::FixedString)

Description: Method bool QSslSocket::addCaCertificates(const QString &path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax)

(2) Signature: void addCaCertificates (QSslCertificate[] certificates)

Description: Method void QSslSocket::addCaCertificates(const QList<QSslCertificate> &certificates)

addDefaultCaCertificate

Signature: [static] void addDefaultCaCertificate (const QSslCertificate certificate)

Description: Static method void QSslSocket::addDefaultCaCertificate(const QSslCertificate &certificate)

This method is static and can be called without an instance.

addDefaultCaCertificates

(1) Signature: [static] bool addDefaultCaCertificates (string path, const QSsl_EncodingFormat format = QSsl::Pem, const QRegExp_PatternSyntax syntax = QRegExp::FixedString)

Description: Static method bool QSslSocket::addDefaultCaCertificates(const QString &path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax)

This method is static and can be called without an instance.

(2) Signature: [static] void addDefaultCaCertificates (QSslCertificate[] certificates)

Description: Static method void QSslSocket::addDefaultCaCertificates(const QList<QSslCertificate> &certificates)

This method is static and can be called without an instance.

atEnd

Signature: [const] bool atEnd

Description: Method bool QSslSocket::atEnd()

This is a reimplementation of QAbstractSocket::atEnd

bytesAvailable

Signature: [const] long long bytesAvailable

Description: Method qint64 QSslSocket::bytesAvailable()

This is a reimplementation of QAbstractSocket::bytesAvailable

bytesToWrite

Signature: [const] long long bytesToWrite

Description: Method qint64 QSslSocket::bytesToWrite()

This is a reimplementation of QAbstractSocket::bytesToWrite

bytesWritten

Signature: [signal] void bytesWritten (long long bytes)

Description: Signal declaration for QSslSocket::bytesWritten(qint64 bytes)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'bytesWritten'. This is the getter.
The object exposes a writable attribute 'bytesWritten'. This is the setter.

caCertificates

Signature: [const] QSslCertificate[] caCertificates

Description: Method QList<QSslCertificate> QSslSocket::caCertificates()

Python specific notes:
The object exposes a readable attribute 'caCertificates'. This is the getter.

caCertificates=

Signature: void caCertificates= (QSslCertificate[] certificates)

Description: Method void QSslSocket::setCaCertificates(const QList<QSslCertificate> &certificates)

Python specific notes:
The object exposes a writable attribute 'caCertificates'. This is the setter.

canReadLine

Signature: [const] bool canReadLine

Description: Method bool QSslSocket::canReadLine()

This is a reimplementation of QAbstractSocket::canReadLine

ciphers

Signature: [const] QSslCipher[] ciphers

Description: Method QList<QSslCipher> QSslSocket::ciphers()

Python specific notes:
The object exposes a readable attribute 'ciphers'. This is the getter.

ciphers=

(1) Signature: void ciphers= (QSslCipher[] ciphers)

Description: Method void QSslSocket::setCiphers(const QList<QSslCipher> &ciphers)

Python specific notes:
The object exposes a writable attribute 'ciphers'. This is the setter.

(2) Signature: void ciphers= (string ciphers)

Description: Method void QSslSocket::setCiphers(const QString &ciphers)

Python specific notes:
The object exposes a writable attribute 'ciphers'. This is the setter.

close

Signature: void close

Description: Method void QSslSocket::close()

This is a reimplementation of QAbstractSocket::close

connectToHost

(1) Signature: void connectToHost (const QHostAddress address, unsigned short port, QIODevice_QFlags_OpenModeFlag mode = QIODevice::ReadWrite)

Description: Method void QSslSocket::connectToHost(const QHostAddress &address, quint16 port, QFlags<QIODevice::OpenModeFlag> mode)

This is a reimplementation of QAbstractSocket::connectToHost

(2) Signature: void connectToHost (string hostName, unsigned short port, QIODevice_QFlags_OpenModeFlag openMode = QIODevice::ReadWrite, const QAbstractSocket_NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol)

Description: Method void QSslSocket::connectToHost(const QString &hostName, quint16 port, QFlags<QIODevice::OpenModeFlag> openMode, QAbstractSocket::NetworkLayerProtocol protocol)

This is a reimplementation of QAbstractSocket::connectToHost

connectToHostEncrypted

(1) Signature: void connectToHostEncrypted (string hostName, unsigned short port, QIODevice_QFlags_OpenModeFlag mode = QIODevice::ReadWrite, const QAbstractSocket_NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol)

Description: Method void QSslSocket::connectToHostEncrypted(const QString &hostName, quint16 port, QFlags<QIODevice::OpenModeFlag> mode, QAbstractSocket::NetworkLayerProtocol protocol)

(2) Signature: void connectToHostEncrypted (string hostName, unsigned short port, string sslPeerName, QIODevice_QFlags_OpenModeFlag mode = QIODevice::ReadWrite, const QAbstractSocket_NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol)

Description: Method void QSslSocket::connectToHostEncrypted(const QString &hostName, quint16 port, const QString &sslPeerName, QFlags<QIODevice::OpenModeFlag> mode, QAbstractSocket::NetworkLayerProtocol protocol)

connected

Signature: [signal] void connected

Description: Signal declaration for QSslSocket::connected()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'connected'. This is the getter.
The object exposes a writable attribute 'connected'. This is the setter.

defaultCaCertificates

Signature: [static] QSslCertificate[] defaultCaCertificates

Description: Static method QList<QSslCertificate> QSslSocket::defaultCaCertificates()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'defaultCaCertificates'. This is the getter.

defaultCaCertificates=

Signature: [static] void defaultCaCertificates= (QSslCertificate[] certificates)

Description: Static method void QSslSocket::setDefaultCaCertificates(const QList<QSslCertificate> &certificates)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'defaultCaCertificates'. This is the setter.

defaultCiphers

Signature: [static] QSslCipher[] defaultCiphers

Description: Static method QList<QSslCipher> QSslSocket::defaultCiphers()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'defaultCiphers'. This is the getter.

defaultCiphers=

Signature: [static] void defaultCiphers= (QSslCipher[] ciphers)

Description: Static method void QSslSocket::setDefaultCiphers(const QList<QSslCipher> &ciphers)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'defaultCiphers'. This is the setter.

destroyed

Signature: [signal] void destroyed (QObject ptr arg1)

Description: Signal declaration for QSslSocket::destroyed(QObject *)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'destroyed'. This is the getter.
The object exposes a writable attribute 'destroyed'. This is the setter.

disconnectFromHost

Signature: void disconnectFromHost

Description: Method void QSslSocket::disconnectFromHost()

This is a reimplementation of QAbstractSocket::disconnectFromHost

disconnected

Signature: [signal] void disconnected

Description: Signal declaration for QSslSocket::disconnected()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'disconnected'. This is the getter.
The object exposes a writable attribute 'disconnected'. This is the setter.

encrypted

Signature: [signal] void encrypted

Description: Signal declaration for QSslSocket::encrypted()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'encrypted'. This is the getter.
The object exposes a writable attribute 'encrypted'. This is the setter.

encryptedBytesAvailable

Signature: [const] long long encryptedBytesAvailable

Description: Method qint64 QSslSocket::encryptedBytesAvailable()

encryptedBytesToWrite

Signature: [const] long long encryptedBytesToWrite

Description: Method qint64 QSslSocket::encryptedBytesToWrite()

encryptedBytesWritten

Signature: [signal] void encryptedBytesWritten (long long totalBytes)

Description: Signal declaration for QSslSocket::encryptedBytesWritten(qint64 totalBytes)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'encryptedBytesWritten'. This is the getter.
The object exposes a writable attribute 'encryptedBytesWritten'. This is the setter.

error_sig

Signature: [signal] void error_sig (const QAbstractSocket_SocketError arg1)

Description: Signal declaration for QSslSocket::error(QAbstractSocket::SocketError)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'error_sig'. This is the getter.
The object exposes a writable attribute 'error_sig'. This is the setter.

flush

Signature: bool flush

Description: Method bool QSslSocket::flush()

hostFound

Signature: [signal] void hostFound

Description: Signal declaration for QSslSocket::hostFound()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'hostFound'. This is the getter.
The object exposes a writable attribute 'hostFound'. This is the setter.

ignoreSslErrors

(1) Signature: void ignoreSslErrors (QSslError[] errors)

Description: Method void QSslSocket::ignoreSslErrors(const QList<QSslError> &errors)

(2) Signature: void ignoreSslErrors

Description: Method void QSslSocket::ignoreSslErrors()

isEncrypted?

Signature: [const] bool isEncrypted?

Description: Method bool QSslSocket::isEncrypted()

localCertificate

Signature: [const] QSslCertificate localCertificate

Description: Method QSslCertificate QSslSocket::localCertificate()

Python specific notes:
The object exposes a readable attribute 'localCertificate'. This is the getter.

localCertificate=

Signature: void localCertificate= (const QSslCertificate certificate)

Description: Method void QSslSocket::setLocalCertificate(const QSslCertificate &certificate)

Python specific notes:
The object exposes a writable attribute 'localCertificate'. This is the setter.

localCertificateChain

Signature: [const] QSslCertificate[] localCertificateChain

Description: Method QList<QSslCertificate> QSslSocket::localCertificateChain()

Python specific notes:
The object exposes a readable attribute 'localCertificateChain'. This is the getter.

localCertificateChain=

Signature: void localCertificateChain= (QSslCertificate[] localChain)

Description: Method void QSslSocket::setLocalCertificateChain(const QList<QSslCertificate> &localChain)

Python specific notes:
The object exposes a writable attribute 'localCertificateChain'. This is the setter.

mode

Signature: [const] QSslSocket_SslMode mode

Description: Method QSslSocket::SslMode QSslSocket::mode()

modeChanged

Signature: [signal] void modeChanged (const QSslSocket_SslMode newMode)

Description: Signal declaration for QSslSocket::modeChanged(QSslSocket::SslMode newMode)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'modeChanged'. This is the getter.
The object exposes a writable attribute 'modeChanged'. This is the setter.

new

Signature: [static] new QSslSocket new (QObject ptr parent = 0)

Description: Constructor QSslSocket::QSslSocket(QObject *parent)

This method creates an object of class QSslSocket.

Python specific notes:
This method is the default initializer of the object.

objectNameChanged

Signature: [signal] void objectNameChanged (string objectName)

Description: Signal declaration for QSslSocket::objectNameChanged(const QString &objectName)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'objectNameChanged'. This is the getter.
The object exposes a writable attribute 'objectNameChanged'. This is the setter.

peerCertificate

Signature: [const] QSslCertificate peerCertificate

Description: Method QSslCertificate QSslSocket::peerCertificate()

peerCertificateChain

Signature: [const] QSslCertificate[] peerCertificateChain

Description: Method QList<QSslCertificate> QSslSocket::peerCertificateChain()

peerVerifyDepth

Signature: [const] int peerVerifyDepth

Description: Method int QSslSocket::peerVerifyDepth()

Python specific notes:
The object exposes a readable attribute 'peerVerifyDepth'. This is the getter.

peerVerifyDepth=

Signature: void peerVerifyDepth= (int depth)

Description: Method void QSslSocket::setPeerVerifyDepth(int depth)

Python specific notes:
The object exposes a writable attribute 'peerVerifyDepth'. This is the setter.

peerVerifyError

Signature: [signal] void peerVerifyError (const QSslError error)

Description: Signal declaration for QSslSocket::peerVerifyError(const QSslError &error)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'peerVerifyError'. This is the getter.
The object exposes a writable attribute 'peerVerifyError'. This is the setter.

peerVerifyMode

Signature: [const] QSslSocket_PeerVerifyMode peerVerifyMode

Description: Method QSslSocket::PeerVerifyMode QSslSocket::peerVerifyMode()

Python specific notes:
The object exposes a readable attribute 'peerVerifyMode'. This is the getter.

peerVerifyMode=

Signature: void peerVerifyMode= (const QSslSocket_PeerVerifyMode mode)

Description: Method void QSslSocket::setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)

Python specific notes:
The object exposes a writable attribute 'peerVerifyMode'. This is the setter.

peerVerifyName

Signature: [const] string peerVerifyName

Description: Method QString QSslSocket::peerVerifyName()

Python specific notes:
The object exposes a readable attribute 'peerVerifyName'. This is the getter.

peerVerifyName=

Signature: void peerVerifyName= (string hostName)

Description: Method void QSslSocket::setPeerVerifyName(const QString &hostName)

Python specific notes:
The object exposes a writable attribute 'peerVerifyName'. This is the setter.

preSharedKeyAuthenticationRequired

Signature: [signal] void preSharedKeyAuthenticationRequired (QSslPreSharedKeyAuthenticator ptr authenticator)

Description: Signal declaration for QSslSocket::preSharedKeyAuthenticationRequired(QSslPreSharedKeyAuthenticator *authenticator)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'preSharedKeyAuthenticationRequired'. This is the getter.
The object exposes a writable attribute 'preSharedKeyAuthenticationRequired'. This is the setter.

privateKey

Signature: [const] QSslKey privateKey

Description: Method QSslKey QSslSocket::privateKey()

Python specific notes:
The object exposes a readable attribute 'privateKey'. This is the getter.

privateKey=

Signature: void privateKey= (const QSslKey key)

Description: Method void QSslSocket::setPrivateKey(const QSslKey &key)

Python specific notes:
The object exposes a writable attribute 'privateKey'. This is the setter.

protocol

Signature: [const] QSsl_SslProtocol protocol

Description: Method QSsl::SslProtocol QSslSocket::protocol()

Python specific notes:
The object exposes a readable attribute 'protocol'. This is the getter.

protocol=

Signature: void protocol= (const QSsl_SslProtocol protocol)

Description: Method void QSslSocket::setProtocol(QSsl::SslProtocol protocol)

Python specific notes:
The object exposes a writable attribute 'protocol'. This is the setter.

proxyAuthenticationRequired

Signature: [signal] void proxyAuthenticationRequired (const QNetworkProxy proxy, QAuthenticator ptr authenticator)

Description: Signal declaration for QSslSocket::proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'proxyAuthenticationRequired'. This is the getter.
The object exposes a writable attribute 'proxyAuthenticationRequired'. This is the setter.

readBufferSize=

Signature: void readBufferSize= (long long size)

Description: Method void QSslSocket::setReadBufferSize(qint64 size)

This is a reimplementation of QAbstractSocket::setReadBufferSize

Python specific notes:
The object exposes a writable attribute 'readBufferSize'. This is the setter.

readChannelFinished

Signature: [signal] void readChannelFinished

Description: Signal declaration for QSslSocket::readChannelFinished()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'readChannelFinished'. This is the getter.
The object exposes a writable attribute 'readChannelFinished'. This is the setter.

readyRead

Signature: [signal] void readyRead

Description: Signal declaration for QSslSocket::readyRead()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'readyRead'. This is the getter.
The object exposes a writable attribute 'readyRead'. This is the setter.

resume

Signature: void resume

Description: Method void QSslSocket::resume()

This is a reimplementation of QAbstractSocket::resume

sessionCipher

Signature: [const] QSslCipher sessionCipher

Description: Method QSslCipher QSslSocket::sessionCipher()

sessionProtocol

Signature: [const] QSsl_SslProtocol sessionProtocol

Description: Method QSsl::SslProtocol QSslSocket::sessionProtocol()

setCaCertificates

Signature: void setCaCertificates (QSslCertificate[] certificates)

Description: Method void QSslSocket::setCaCertificates(const QList<QSslCertificate> &certificates)

Python specific notes:
The object exposes a writable attribute 'caCertificates'. This is the setter.

setCiphers

(1) Signature: void setCiphers (QSslCipher[] ciphers)

Description: Method void QSslSocket::setCiphers(const QList<QSslCipher> &ciphers)

Python specific notes:
The object exposes a writable attribute 'ciphers'. This is the setter.

(2) Signature: void setCiphers (string ciphers)

Description: Method void QSslSocket::setCiphers(const QString &ciphers)

Python specific notes:
The object exposes a writable attribute 'ciphers'. This is the setter.

setDefaultCaCertificates

Signature: [static] void setDefaultCaCertificates (QSslCertificate[] certificates)

Description: Static method void QSslSocket::setDefaultCaCertificates(const QList<QSslCertificate> &certificates)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'defaultCaCertificates'. This is the setter.

setDefaultCiphers

Signature: [static] void setDefaultCiphers (QSslCipher[] ciphers)

Description: Static method void QSslSocket::setDefaultCiphers(const QList<QSslCipher> &ciphers)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'defaultCiphers'. This is the setter.

setLocalCertificate

(1) Signature: void setLocalCertificate (const QSslCertificate certificate)

Description: Method void QSslSocket::setLocalCertificate(const QSslCertificate &certificate)

Python specific notes:
The object exposes a writable attribute 'localCertificate'. This is the setter.

(2) Signature: void setLocalCertificate (string fileName, const QSsl_EncodingFormat format = QSsl::Pem)

Description: Method void QSslSocket::setLocalCertificate(const QString &fileName, QSsl::EncodingFormat format)

setLocalCertificateChain

Signature: void setLocalCertificateChain (QSslCertificate[] localChain)

Description: Method void QSslSocket::setLocalCertificateChain(const QList<QSslCertificate> &localChain)

Python specific notes:
The object exposes a writable attribute 'localCertificateChain'. This is the setter.

setPeerVerifyDepth

Signature: void setPeerVerifyDepth (int depth)

Description: Method void QSslSocket::setPeerVerifyDepth(int depth)

Python specific notes:
The object exposes a writable attribute 'peerVerifyDepth'. This is the setter.

setPeerVerifyMode

Signature: void setPeerVerifyMode (const QSslSocket_PeerVerifyMode mode)

Description: Method void QSslSocket::setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)

Python specific notes:
The object exposes a writable attribute 'peerVerifyMode'. This is the setter.

setPeerVerifyName

Signature: void setPeerVerifyName (string hostName)

Description: Method void QSslSocket::setPeerVerifyName(const QString &hostName)

Python specific notes:
The object exposes a writable attribute 'peerVerifyName'. This is the setter.

setPrivateKey

(1) Signature: void setPrivateKey (const QSslKey key)

Description: Method void QSslSocket::setPrivateKey(const QSslKey &key)

Python specific notes:
The object exposes a writable attribute 'privateKey'. This is the setter.

(2) Signature: void setPrivateKey (string fileName, const QSsl_KeyAlgorithm algorithm = QSsl::Rsa, const QSsl_EncodingFormat format = QSsl::Pem, bytes passPhrase = QByteArray())

Description: Method void QSslSocket::setPrivateKey(const QString &fileName, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, const QByteArray &passPhrase)

setProtocol

Signature: void setProtocol (const QSsl_SslProtocol protocol)

Description: Method void QSslSocket::setProtocol(QSsl::SslProtocol protocol)

Python specific notes:
The object exposes a writable attribute 'protocol'. This is the setter.

setReadBufferSize

Signature: void setReadBufferSize (long long size)

Description: Method void QSslSocket::setReadBufferSize(qint64 size)

This is a reimplementation of QAbstractSocket::setReadBufferSize

Python specific notes:
The object exposes a writable attribute 'readBufferSize'. This is the setter.

setSocketDescriptor

Signature: bool setSocketDescriptor (long long socketDescriptor, const QAbstractSocket_SocketState state = QAbstractSocket::ConnectedState, QIODevice_QFlags_OpenModeFlag openMode = QIODevice::ReadWrite)

Description: Method bool QSslSocket::setSocketDescriptor(QIntegerForSizeof<void*>::Signed socketDescriptor, QAbstractSocket::SocketState state, QFlags<QIODevice::OpenModeFlag> openMode)

This is a reimplementation of QAbstractSocket::setSocketDescriptor

setSocketOption

Signature: void setSocketOption (const QAbstractSocket_SocketOption option, variant value)

Description: Method void QSslSocket::setSocketOption(QAbstractSocket::SocketOption option, const QVariant &value)

This is a reimplementation of QAbstractSocket::setSocketOption

setSslConfiguration

Signature: void setSslConfiguration (const QSslConfiguration config)

Description: Method void QSslSocket::setSslConfiguration(const QSslConfiguration &config)

Python specific notes:
The object exposes a writable attribute 'sslConfiguration'. This is the setter.

socketOption

Signature: variant socketOption (const QAbstractSocket_SocketOption option)

Description: Method QVariant QSslSocket::socketOption(QAbstractSocket::SocketOption option)

This is a reimplementation of QAbstractSocket::socketOption

sslConfiguration

Signature: [const] QSslConfiguration sslConfiguration

Description: Method QSslConfiguration QSslSocket::sslConfiguration()

Python specific notes:
The object exposes a readable attribute 'sslConfiguration'. This is the getter.

sslConfiguration=

Signature: void sslConfiguration= (const QSslConfiguration config)

Description: Method void QSslSocket::setSslConfiguration(const QSslConfiguration &config)

Python specific notes:
The object exposes a writable attribute 'sslConfiguration'. This is the setter.

sslErrors

Signature: [const] QSslError[] sslErrors

Description: Method QList<QSslError> QSslSocket::sslErrors()

sslErrors_sig

Signature: [signal] void sslErrors_sig (QSslError[] errors)

Description: Signal declaration for QSslSocket::sslErrors(const QList<QSslError> &errors)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'sslErrors_sig'. This is the getter.
The object exposes a writable attribute 'sslErrors_sig'. This is the setter.

sslLibraryBuildVersionNumber

Signature: [static] long sslLibraryBuildVersionNumber

Description: Static method long int QSslSocket::sslLibraryBuildVersionNumber()

This method is static and can be called without an instance.

sslLibraryBuildVersionString

Signature: [static] string sslLibraryBuildVersionString

Description: Static method QString QSslSocket::sslLibraryBuildVersionString()

This method is static and can be called without an instance.

sslLibraryVersionNumber

Signature: [static] long sslLibraryVersionNumber

Description: Static method long int QSslSocket::sslLibraryVersionNumber()

This method is static and can be called without an instance.

sslLibraryVersionString

Signature: [static] string sslLibraryVersionString

Description: Static method QString QSslSocket::sslLibraryVersionString()

This method is static and can be called without an instance.

startClientEncryption

Signature: void startClientEncryption

Description: Method void QSslSocket::startClientEncryption()

startServerEncryption

Signature: void startServerEncryption

Description: Method void QSslSocket::startServerEncryption()

stateChanged

Signature: [signal] void stateChanged (const QAbstractSocket_SocketState arg1)

Description: Signal declaration for QSslSocket::stateChanged(QAbstractSocket::SocketState)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'stateChanged'. This is the getter.
The object exposes a writable attribute 'stateChanged'. This is the setter.

staticMetaObject

Signature: [static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

supportedCiphers

Signature: [static] QSslCipher[] supportedCiphers

Description: Static method QList<QSslCipher> QSslSocket::supportedCiphers()

This method is static and can be called without an instance.

supportsSsl

Signature: [static] bool supportsSsl

Description: Static method bool QSslSocket::supportsSsl()

This method is static and can be called without an instance.

systemCaCertificates

Signature: [static] QSslCertificate[] systemCaCertificates

Description: Static method QList<QSslCertificate> QSslSocket::systemCaCertificates()

This method is static and can be called without an instance.

tr

Signature: [static] string tr (string s, string c = nullptr, int n = -1)

Description: Static method QString QSslSocket::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

trUtf8

Signature: [static] string trUtf8 (string s, string c = nullptr, int n = -1)

Description: Static method QString QSslSocket::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.

waitForBytesWritten

Signature: bool waitForBytesWritten (int msecs = 30000)

Description: Method bool QSslSocket::waitForBytesWritten(int msecs)

This is a reimplementation of QAbstractSocket::waitForBytesWritten

waitForConnected

Signature: bool waitForConnected (int msecs = 30000)

Description: Method bool QSslSocket::waitForConnected(int msecs)

This is a reimplementation of QAbstractSocket::waitForConnected

waitForDisconnected

Signature: bool waitForDisconnected (int msecs = 30000)

Description: Method bool QSslSocket::waitForDisconnected(int msecs)

This is a reimplementation of QAbstractSocket::waitForDisconnected

waitForEncrypted

Signature: bool waitForEncrypted (int msecs = 30000)

Description: Method bool QSslSocket::waitForEncrypted(int msecs)

waitForReadyRead

Signature: bool waitForReadyRead (int msecs = 30000)

Description: Method bool QSslSocket::waitForReadyRead(int msecs)

This is a reimplementation of QAbstractSocket::waitForReadyRead