Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide6.QtNetwork »

Classe « QSslSocket »

Informations générales

Héritage

builtins.object
    Object
        QIODeviceBase
builtins.object
    Object
        QObject
            QIODevice
                QAbstractSocket
                    QTcpSocket
                        QSslSocket

Définition

class QSslSocket(QTcpSocket):

Description [extrait de QSslSocket.__doc__]

QSslSocket(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None __init__(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AddressInUseErrorPySide6.QtNetwork.QAbstractSocket.SocketError.AddressInUseError
AnyIPProtocolPySide6.QtNetwork.QAbstractSocket.NetworkLayerProtocol.AnyIPProtocol
AppendPySide6.QtCore.QIODeviceBase.OpenModeFlag.Append
AutoVerifyPeerPySide6.QtNetwork.QSslSocket.PeerVerifyMode.AutoVerifyPeer
BoundStatePySide6.QtNetwork.QAbstractSocket.SocketState.BoundState
ClosingStatePySide6.QtNetwork.QAbstractSocket.SocketState.ClosingState
ConnectedStatePySide6.QtNetwork.QAbstractSocket.SocketState.ConnectedState
ConnectingStatePySide6.QtNetwork.QAbstractSocket.SocketState.ConnectingState
ConnectionRefusedErrorPySide6.QtNetwork.QAbstractSocket.SocketError.ConnectionRefusedError
DatagramTooLargeErrorPySide6.QtNetwork.QAbstractSocket.SocketError.DatagramTooLargeError
DefaultForPlatformPySide6.QtNetwork.QAbstractSocket.BindFlag.DefaultForPlatform
DontShareAddressPySide6.QtNetwork.QAbstractSocket.BindFlag.DontShareAddress
ExistingOnlyPySide6.QtCore.QIODeviceBase.OpenModeFlag.ExistingOnly
HostLookupStatePySide6.QtNetwork.QAbstractSocket.SocketState.HostLookupState
HostNotFoundErrorPySide6.QtNetwork.QAbstractSocket.SocketError.HostNotFoundError
IPv4ProtocolPySide6.QtNetwork.QAbstractSocket.NetworkLayerProtocol.IPv4Protocol
IPv6ProtocolPySide6.QtNetwork.QAbstractSocket.NetworkLayerProtocol.IPv6Protocol
KeepAliveOptionPySide6.QtNetwork.QAbstractSocket.SocketOption.KeepAliveOption
ListeningStatePySide6.QtNetwork.QAbstractSocket.SocketState.ListeningState
LowDelayOptionPySide6.QtNetwork.QAbstractSocket.SocketOption.LowDelayOption
MulticastLoopbackOptionPySide6.QtNetwork.QAbstractSocket.SocketOption.MulticastLoopbackOption
MulticastTtlOptionPySide6.QtNetwork.QAbstractSocket.SocketOption.MulticastTtlOption
NetworkErrorPySide6.QtNetwork.QAbstractSocket.SocketError.NetworkError
NewOnlyPySide6.QtCore.QIODeviceBase.OpenModeFlag.NewOnly
NotOpenPySide6.QtCore.QIODeviceBase.OpenModeFlag.NotOpen
OperationErrorPySide6.QtNetwork.QAbstractSocket.SocketError.OperationError
PathMtuSocketOptionPySide6.QtNetwork.QAbstractSocket.SocketOption.PathMtuSocketOption
PauseNeverPySide6.QtNetwork.QAbstractSocket.PauseMode.PauseNever
PauseOnSslErrorsPySide6.QtNetwork.QAbstractSocket.PauseMode.PauseOnSslErrors
ProxyAuthenticationRequiredErrorPySide6.QtNetwork.QAbstractSocket.SocketError.ProxyAuthenticationRequiredError
ProxyConnectionClosedErrorPySide6.QtNetwork.QAbstractSocket.SocketError.ProxyConnectionClosedError
ProxyConnectionRefusedErrorPySide6.QtNetwork.QAbstractSocket.SocketError.ProxyConnectionRefusedError
ProxyConnectionTimeoutErrorPySide6.QtNetwork.QAbstractSocket.SocketError.ProxyConnectionTimeoutError
ProxyNotFoundErrorPySide6.QtNetwork.QAbstractSocket.SocketError.ProxyNotFoundError
ProxyProtocolErrorPySide6.QtNetwork.QAbstractSocket.SocketError.ProxyProtocolError
QueryPeerPySide6.QtNetwork.QSslSocket.PeerVerifyMode.QueryPeer
ReadOnlyPySide6.QtCore.QIODeviceBase.OpenModeFlag.ReadOnly
ReadWritePySide6.QtCore.QIODeviceBase.OpenModeFlag.ReadWrite
ReceiveBufferSizeSocketOptionPySide6.QtNetwork.QAbstractSocket.SocketOption.ReceiveBufferSizeSocketOption
RemoteHostClosedErrorPySide6.QtNetwork.QAbstractSocket.SocketError.RemoteHostClosedError
ReuseAddressHintPySide6.QtNetwork.QAbstractSocket.BindFlag.ReuseAddressHint
SctpSocketPySide6.QtNetwork.QAbstractSocket.SocketType.SctpSocket
SendBufferSizeSocketOptionPySide6.QtNetwork.QAbstractSocket.SocketOption.SendBufferSizeSocketOption
ShareAddressPySide6.QtNetwork.QAbstractSocket.BindFlag.ShareAddress
SocketAccessErrorPySide6.QtNetwork.QAbstractSocket.SocketError.SocketAccessError
SocketAddressNotAvailableErrorPySide6.QtNetwork.QAbstractSocket.SocketError.SocketAddressNotAvailableError
SocketResourceErrorPySide6.QtNetwork.QAbstractSocket.SocketError.SocketResourceError
SocketTimeoutErrorPySide6.QtNetwork.QAbstractSocket.SocketError.SocketTimeoutError
SslClientModePySide6.QtNetwork.QSslSocket.SslMode.SslClientMode
SslHandshakeFailedErrorPySide6.QtNetwork.QAbstractSocket.SocketError.SslHandshakeFailedError
SslInternalErrorPySide6.QtNetwork.QAbstractSocket.SocketError.SslInternalError
SslInvalidUserDataErrorPySide6.QtNetwork.QAbstractSocket.SocketError.SslInvalidUserDataError
SslServerModePySide6.QtNetwork.QSslSocket.SslMode.SslServerMode
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40dcecdb00>
TcpSocketPySide6.QtNetwork.QAbstractSocket.SocketType.TcpSocket
TemporaryErrorPySide6.QtNetwork.QAbstractSocket.SocketError.TemporaryError
TextPySide6.QtCore.QIODeviceBase.OpenModeFlag.Text
TruncatePySide6.QtCore.QIODeviceBase.OpenModeFlag.Truncate
TypeOfServiceOptionPySide6.QtNetwork.QAbstractSocket.SocketOption.TypeOfServiceOption
UdpSocketPySide6.QtNetwork.QAbstractSocket.SocketType.UdpSocket
UnbufferedPySide6.QtCore.QIODeviceBase.OpenModeFlag.Unbuffered
UnconnectedStatePySide6.QtNetwork.QAbstractSocket.SocketState.UnconnectedState
UnencryptedModePySide6.QtNetwork.QSslSocket.SslMode.UnencryptedMode
UnfinishedSocketOperationErrorPySide6.QtNetwork.QAbstractSocket.SocketError.UnfinishedSocketOperationError
UnknownNetworkLayerProtocolPySide6.QtNetwork.QAbstractSocket.NetworkLayerProtocol.UnknownNetworkLayerProtocol
UnknownSocketErrorPySide6.QtNetwork.QAbstractSocket.SocketError.UnknownSocketError
UnknownSocketTypePySide6.QtNetwork.QAbstractSocket.SocketType.UnknownSocketType
UnsupportedSocketOperationErrorPySide6.QtNetwork.QAbstractSocket.SocketError.UnsupportedSocketOperationError
VerifyNonePySide6.QtNetwork.QSslSocket.PeerVerifyMode.VerifyNone
VerifyPeerPySide6.QtNetwork.QSslSocket.PeerVerifyMode.VerifyPeer
WriteOnlyPySide6.QtCore.QIODeviceBase.OpenModeFlag.WriteOnly

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
aboutToClose
activeBackend() -> str activeBackend() -> str [extrait de activeBackend.__doc__]
alertReceived
alertSent
atEnd(self) -> bool atEnd(self) -> bool [extrait de atEnd.__doc__]
availableBackends() -> List[str] availableBackends() -> List[str] [extrait de availableBackends.__doc__]
bytesAvailable(self) -> int bytesAvailable(self) -> int [extrait de bytesAvailable.__doc__]
bytesToWrite(self) -> int bytesToWrite(self) -> int [extrait de bytesToWrite.__doc__]
bytesWritten
canReadLine(self) -> bool canReadLine(self) -> bool [extrait de canReadLine.__doc__]
channelBytesWritten
channelReadyRead
close(self) -> None close(self) -> None [extrait de close.__doc__]
connected
connectToHost connectToHost(self, address: Union[PySide6.QtNetwork.QHostAddress, PySide6.QtNetwork.QHostAddress.SpecialAddress], port: int, mode: PySide6.QtCore.QIODeviceBase.OpenMode = PySide6.QtCore.QIODeviceBase.OpenModeFlag.ReadWrite) -> None [extrait de connectToHost.__doc__]
connectToHostEncrypted connectToHostEncrypted(self, hostName: str, port: int, mode: PySide6.QtCore.QIODeviceBase.OpenMode = PySide6.QtCore.QIODeviceBase.OpenModeFlag.ReadWrite, protocol: PySide6.QtNetwork.QAbstractSocket.NetworkLayerProtocol = PySide6.QtNetwork.QAbstractSocket.NetworkLayerProtocol.AnyIPProtocol) -> None [extrait de connectToHostEncrypted.__doc__]
continueInterruptedHandshake(self) -> None continueInterruptedHandshake(self) -> None [extrait de continueInterruptedHandshake.__doc__]
destroyed
disconnected
disconnectFromHost(self) -> None disconnectFromHost(self) -> None [extrait de disconnectFromHost.__doc__]
encrypted
encryptedBytesAvailable(self) -> int encryptedBytesAvailable(self) -> int [extrait de encryptedBytesAvailable.__doc__]
encryptedBytesToWrite(self) -> int encryptedBytesToWrite(self) -> int [extrait de encryptedBytesToWrite.__doc__]
encryptedBytesWritten
errorOccurred
handshakeInterruptedOnError
hostFound
ignoreSslErrors ignoreSslErrors(self) -> None [extrait de ignoreSslErrors.__doc__]
implementedClasses(backendName: str = {}) -> List[PySide6.QtNetwork.QSsl.ImplementedClass] implementedClasses(backendName: str = {}) -> List[PySide6.QtNetwork.QSsl.ImplementedClass] [extrait de implementedClasses.__doc__]
isClassImplemented(cl: PySide6.QtNetwork.QSsl.ImplementedClass, backendName: str = {}) -> bool isClassImplemented(cl: PySide6.QtNetwork.QSsl.ImplementedClass, backendName: str = {}) -> bool [extrait de isClassImplemented.__doc__]
isEncrypted(self) -> bool isEncrypted(self) -> bool [extrait de isEncrypted.__doc__]
isFeatureSupported(feat: PySide6.QtNetwork.QSsl.SupportedFeature, backendName: str = {}) -> bool isFeatureSupported(feat: PySide6.QtNetwork.QSsl.SupportedFeature, backendName: str = {}) -> bool [extrait de isFeatureSupported.__doc__]
isProtocolSupported(protocol: PySide6.QtNetwork.QSsl.SslProtocol, backendName: str = {}) -> bool isProtocolSupported(protocol: PySide6.QtNetwork.QSsl.SslProtocol, backendName: str = {}) -> bool [extrait de isProtocolSupported.__doc__]
localCertificate(self) -> PySide6.QtNetwork.QSslCertificate localCertificate(self) -> PySide6.QtNetwork.QSslCertificate [extrait de localCertificate.__doc__]
localCertificateChain(self) -> List[PySide6.QtNetwork.QSslCertificate] localCertificateChain(self) -> List[PySide6.QtNetwork.QSslCertificate] [extrait de localCertificateChain.__doc__]
mode(self) -> PySide6.QtNetwork.QSslSocket.SslMode mode(self) -> PySide6.QtNetwork.QSslSocket.SslMode [extrait de mode.__doc__]
modeChanged
newSessionTicketReceived
objectNameChanged
ocspResponses(self) -> List[PySide6.QtNetwork.QOcspResponse] ocspResponses(self) -> List[PySide6.QtNetwork.QOcspResponse] [extrait de ocspResponses.__doc__]
peerCertificate(self) -> PySide6.QtNetwork.QSslCertificate peerCertificate(self) -> PySide6.QtNetwork.QSslCertificate [extrait de peerCertificate.__doc__]
peerCertificateChain(self) -> List[PySide6.QtNetwork.QSslCertificate] peerCertificateChain(self) -> List[PySide6.QtNetwork.QSslCertificate] [extrait de peerCertificateChain.__doc__]
peerVerifyDepth(self) -> int peerVerifyDepth(self) -> int [extrait de peerVerifyDepth.__doc__]
peerVerifyError
PeerVerifyMode
peerVerifyMode(self) -> PySide6.QtNetwork.QSslSocket.PeerVerifyMode peerVerifyMode(self) -> PySide6.QtNetwork.QSslSocket.PeerVerifyMode [extrait de peerVerifyMode.__doc__]
peerVerifyName(self) -> str peerVerifyName(self) -> str [extrait de peerVerifyName.__doc__]
preSharedKeyAuthenticationRequired
privateKey(self) -> PySide6.QtNetwork.QSslKey privateKey(self) -> PySide6.QtNetwork.QSslKey [extrait de privateKey.__doc__]
protocol(self) -> PySide6.QtNetwork.QSsl.SslProtocol protocol(self) -> PySide6.QtNetwork.QSsl.SslProtocol [extrait de protocol.__doc__]
proxyAuthenticationRequired
readChannelFinished
readData(self, data: bytes, maxlen: int) -> object readData(self, data: bytes, maxlen: int) -> object [extrait de readData.__doc__]
readyRead
resume(self) -> None resume(self) -> None [extrait de resume.__doc__]
sessionCipher(self) -> PySide6.QtNetwork.QSslCipher sessionCipher(self) -> PySide6.QtNetwork.QSslCipher [extrait de sessionCipher.__doc__]
sessionProtocol(self) -> PySide6.QtNetwork.QSsl.SslProtocol sessionProtocol(self) -> PySide6.QtNetwork.QSsl.SslProtocol [extrait de sessionProtocol.__doc__]
setActiveBackend(backendName: str) -> bool setActiveBackend(backendName: str) -> bool [extrait de setActiveBackend.__doc__]
setLocalCertificate setLocalCertificate(self, certificate: Union[PySide6.QtNetwork.QSslCertificate, PySide6.QtCore.QIODevice]) -> None [extrait de setLocalCertificate.__doc__]
setLocalCertificateChain(self, localChain: Sequence[PySide6.QtNetwork.QSslCertificate]) -> None setLocalCertificateChain(self, localChain: Sequence[PySide6.QtNetwork.QSslCertificate]) -> None [extrait de setLocalCertificateChain.__doc__]
setPeerVerifyDepth(self, depth: int) -> None setPeerVerifyDepth(self, depth: int) -> None [extrait de setPeerVerifyDepth.__doc__]
setPeerVerifyMode(self, mode: PySide6.QtNetwork.QSslSocket.PeerVerifyMode) -> None setPeerVerifyMode(self, mode: PySide6.QtNetwork.QSslSocket.PeerVerifyMode) -> None [extrait de setPeerVerifyMode.__doc__]
setPeerVerifyName(self, hostName: str) -> None setPeerVerifyName(self, hostName: str) -> None [extrait de setPeerVerifyName.__doc__]
setPrivateKey setPrivateKey(self, fileName: str, algorithm: PySide6.QtNetwork.QSsl.KeyAlgorithm = PySide6.QtNetwork.QSsl.KeyAlgorithm.Rsa, format: PySide6.QtNetwork.QSsl.EncodingFormat = PySide6.QtNetwork.QSsl.EncodingFormat.Pem, passPhrase: Union[PySide6.QtCore.QByteArray, bytes] = Default(QByteArray)) -> None [extrait de setPrivateKey.__doc__]
setProtocol(self, protocol: PySide6.QtNetwork.QSsl.SslProtocol) -> None setProtocol(self, protocol: PySide6.QtNetwork.QSsl.SslProtocol) -> None [extrait de setProtocol.__doc__]
setReadBufferSize(self, size: int) -> None setReadBufferSize(self, size: int) -> None [extrait de setReadBufferSize.__doc__]
setSocketDescriptor(self, socketDescriptor: int, state: PySide6.QtNetwork.QAbstractSocket.SocketState = PySide6.QtNetwork.QAbstractSocket.SocketState.ConnectedState, openMode: PySide6.QtCore.QIODeviceBase.OpenMode = PySide6.QtCore.QIODeviceBase.OpenModeFlag.ReadWrite) -> bool setSocketDescriptor(self, socketDescriptor: int, state: PySide6.QtNetwork.QAbstractSocket.SocketState = PySide6.QtNetwork.QAbstractSocket.SocketState.ConnectedState, openMode: PySide6.QtCore.QIODeviceBase.OpenMode = PySide6.QtCore.QIODeviceBase.OpenModeFlag.ReadWrite) -> bool [extrait de setSocketDescriptor.__doc__]
setSocketOption(self, option: PySide6.QtNetwork.QAbstractSocket.SocketOption, value: Any) -> None setSocketOption(self, option: PySide6.QtNetwork.QAbstractSocket.SocketOption, value: Any) -> None [extrait de setSocketOption.__doc__]
setSslConfiguration(self, config: PySide6.QtNetwork.QSslConfiguration) -> None setSslConfiguration(self, config: PySide6.QtNetwork.QSslConfiguration) -> None [extrait de setSslConfiguration.__doc__]
skipData(self, maxSize: int) -> int skipData(self, maxSize: int) -> int [extrait de skipData.__doc__]
socketOption(self, option: PySide6.QtNetwork.QAbstractSocket.SocketOption) -> Any socketOption(self, option: PySide6.QtNetwork.QAbstractSocket.SocketOption) -> Any [extrait de socketOption.__doc__]
sslConfiguration(self) -> PySide6.QtNetwork.QSslConfiguration sslConfiguration(self) -> PySide6.QtNetwork.QSslConfiguration [extrait de sslConfiguration.__doc__]
sslErrors
sslHandshakeErrors(self) -> List[PySide6.QtNetwork.QSslError] sslHandshakeErrors(self) -> List[PySide6.QtNetwork.QSslError] [extrait de sslHandshakeErrors.__doc__]
sslLibraryBuildVersionNumber() -> int sslLibraryBuildVersionNumber() -> int [extrait de sslLibraryBuildVersionNumber.__doc__]
sslLibraryBuildVersionString() -> str sslLibraryBuildVersionString() -> str [extrait de sslLibraryBuildVersionString.__doc__]
sslLibraryVersionNumber() -> int sslLibraryVersionNumber() -> int [extrait de sslLibraryVersionNumber.__doc__]
sslLibraryVersionString() -> str sslLibraryVersionString() -> str [extrait de sslLibraryVersionString.__doc__]
SslMode
startClientEncryption(self) -> None startClientEncryption(self) -> None [extrait de startClientEncryption.__doc__]
startServerEncryption(self) -> None startServerEncryption(self) -> None [extrait de startServerEncryption.__doc__]
stateChanged
supportedFeatures(backendName: str = {}) -> List[PySide6.QtNetwork.QSsl.SupportedFeature] supportedFeatures(backendName: str = {}) -> List[PySide6.QtNetwork.QSsl.SupportedFeature] [extrait de supportedFeatures.__doc__]
supportedProtocols(backendName: str = {}) -> List[PySide6.QtNetwork.QSsl.SslProtocol] supportedProtocols(backendName: str = {}) -> List[PySide6.QtNetwork.QSsl.SslProtocol] [extrait de supportedProtocols.__doc__]
supportsSsl() -> bool supportsSsl() -> bool [extrait de supportsSsl.__doc__]
tr
waitForBytesWritten(self, msecs: int = 30000) -> bool waitForBytesWritten(self, msecs: int = 30000) -> bool [extrait de waitForBytesWritten.__doc__]
waitForConnected(self, msecs: int = 30000) -> bool waitForConnected(self, msecs: int = 30000) -> bool [extrait de waitForConnected.__doc__]
waitForDisconnected(self, msecs: int = 30000) -> bool waitForDisconnected(self, msecs: int = 30000) -> bool [extrait de waitForDisconnected.__doc__]
waitForEncrypted(self, msecs: int = 30000) -> bool waitForEncrypted(self, msecs: int = 30000) -> bool [extrait de waitForEncrypted.__doc__]
waitForReadyRead(self, msecs: int = 30000) -> bool waitForReadyRead(self, msecs: int = 30000) -> bool [extrait de waitForReadyRead.__doc__]
writeData(self, data: bytes, len: int) -> int writeData(self, data: bytes, len: int) -> int [extrait de writeData.__doc__]

Méthodes héritées de la classe QTcpSocket

__init_subclass__, __subclasshook__, bind

Méthodes héritées de la classe QAbstractSocket

__init_subclass__, __subclasshook__, abort, bind, BindFlag, BindMode, error, flush, isSequential, isValid, localAddress, localPort, NetworkLayerProtocol, PauseMode, pauseMode, PauseModes, peerAddress, peerName, peerPort, protocolTag, proxy, readBufferSize, readLineData, setLocalAddress, setLocalPort, setPauseMode, setPeerAddress, setPeerName, setPeerPort, setProtocolTag, setProxy, setSocketError, setSocketState, socketDescriptor, SocketError, SocketOption, SocketState, SocketType, socketType, state

Méthodes héritées de la classe QIODevice

__init_subclass__, __subclasshook__, commitTransaction, currentReadChannel, currentWriteChannel, errorString, getChar, isOpen, isReadable, isSequential, isTextModeEnabled, isTransactionStarted, isWritable, open, openMode, peek, pos, putChar, read, readAll, readChannelCount, readLine, readLineData, reset, rollbackTransaction, seek, setCurrentReadChannel, setCurrentWriteChannel, setErrorString, setOpenMode, setTextModeEnabled, size, skip, startTransaction, ungetChar, write, writeChannelCount

Méthodes héritées de la classe QIODeviceBase

__copy__, __init_subclass__, __subclasshook__, OpenMode, OpenModeFlag

Méthodes héritées de la classe QObject

__getattribute__, __init_subclass__, __repr__, __subclasshook__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent

Méthodes héritées de la classe Object

__getattribute__, __init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__