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 « QAbstractSocket »

Informations générales

Héritage

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

Définition

class QAbstractSocket(QIODevice):

Description [extrait de QAbstractSocket.__doc__]

QAbstractSocket(self, socketType: PySide6.QtNetwork.QAbstractSocket.SocketType, parent: PySide6.QtCore.QObject) -> 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, socketType: PySide6.QtNetwork.QAbstractSocket.SocketType, parent: PySide6.QtCore.QObject) -> None __init__(self, socketType: PySide6.QtNetwork.QAbstractSocket.SocketType, parent: PySide6.QtCore.QObject) -> 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
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
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
SslHandshakeFailedErrorPySide6.QtNetwork.QAbstractSocket.SocketError.SslHandshakeFailedError
SslInternalErrorPySide6.QtNetwork.QAbstractSocket.SocketError.SslInternalError
SslInvalidUserDataErrorPySide6.QtNetwork.QAbstractSocket.SocketError.SslInvalidUserDataError
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40dcebff40>
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
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
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__]
abort(self) -> None abort(self) -> None [extrait de abort.__doc__]
aboutToClose
bind bind(self, address: Union[PySide6.QtNetwork.QHostAddress, PySide6.QtNetwork.QHostAddress.SpecialAddress], port: int = 0, mode: PySide6.QtNetwork.QAbstractSocket.BindMode = PySide6.QtNetwork.QAbstractSocket.BindFlag.DefaultForPlatform) -> bool [extrait de bind.__doc__]
BindFlag
BindMode
bytesAvailable(self) -> int bytesAvailable(self) -> int [extrait de bytesAvailable.__doc__]
bytesToWrite(self) -> int bytesToWrite(self) -> int [extrait de bytesToWrite.__doc__]
bytesWritten
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__]
destroyed
disconnected
disconnectFromHost(self) -> None disconnectFromHost(self) -> None [extrait de disconnectFromHost.__doc__]
error(self) -> PySide6.QtNetwork.QAbstractSocket.SocketError error(self) -> PySide6.QtNetwork.QAbstractSocket.SocketError [extrait de error.__doc__]
errorOccurred
flush(self) -> bool flush(self) -> bool [extrait de flush.__doc__]
hostFound
isSequential(self) -> bool isSequential(self) -> bool [extrait de isSequential.__doc__]
isValid(self) -> bool isValid(self) -> bool [extrait de isValid.__doc__]
localAddress(self) -> PySide6.QtNetwork.QHostAddress localAddress(self) -> PySide6.QtNetwork.QHostAddress [extrait de localAddress.__doc__]
localPort(self) -> int localPort(self) -> int [extrait de localPort.__doc__]
NetworkLayerProtocol
objectNameChanged
PauseMode
pauseMode(self) -> PySide6.QtNetwork.QAbstractSocket.PauseModes pauseMode(self) -> PySide6.QtNetwork.QAbstractSocket.PauseModes [extrait de pauseMode.__doc__]
PauseModes
peerAddress(self) -> PySide6.QtNetwork.QHostAddress peerAddress(self) -> PySide6.QtNetwork.QHostAddress [extrait de peerAddress.__doc__]
peerName(self) -> str peerName(self) -> str [extrait de peerName.__doc__]
peerPort(self) -> int peerPort(self) -> int [extrait de peerPort.__doc__]
protocolTag(self) -> str protocolTag(self) -> str [extrait de protocolTag.__doc__]
proxy(self) -> PySide6.QtNetwork.QNetworkProxy proxy(self) -> PySide6.QtNetwork.QNetworkProxy [extrait de proxy.__doc__]
proxyAuthenticationRequired
readBufferSize(self) -> int readBufferSize(self) -> int [extrait de readBufferSize.__doc__]
readChannelFinished
readData(self, data: bytes, maxlen: int) -> object readData(self, data: bytes, maxlen: int) -> object [extrait de readData.__doc__]
readLineData(self, data: bytes, maxlen: int) -> object readLineData(self, data: bytes, maxlen: int) -> object [extrait de readLineData.__doc__]
readyRead
resume(self) -> None resume(self) -> None [extrait de resume.__doc__]
setLocalAddress(self, address: Union[PySide6.QtNetwork.QHostAddress, PySide6.QtNetwork.QHostAddress.SpecialAddress]) -> None setLocalAddress(self, address: Union[PySide6.QtNetwork.QHostAddress, PySide6.QtNetwork.QHostAddress.SpecialAddress]) -> None [extrait de setLocalAddress.__doc__]
setLocalPort(self, port: int) -> None setLocalPort(self, port: int) -> None [extrait de setLocalPort.__doc__]
setPauseMode(self, pauseMode: PySide6.QtNetwork.QAbstractSocket.PauseModes) -> None setPauseMode(self, pauseMode: PySide6.QtNetwork.QAbstractSocket.PauseModes) -> None [extrait de setPauseMode.__doc__]
setPeerAddress(self, address: Union[PySide6.QtNetwork.QHostAddress, PySide6.QtNetwork.QHostAddress.SpecialAddress]) -> None setPeerAddress(self, address: Union[PySide6.QtNetwork.QHostAddress, PySide6.QtNetwork.QHostAddress.SpecialAddress]) -> None [extrait de setPeerAddress.__doc__]
setPeerName(self, name: str) -> None setPeerName(self, name: str) -> None [extrait de setPeerName.__doc__]
setPeerPort(self, port: int) -> None setPeerPort(self, port: int) -> None [extrait de setPeerPort.__doc__]
setProtocolTag(self, tag: str) -> None setProtocolTag(self, tag: str) -> None [extrait de setProtocolTag.__doc__]
setProxy(self, networkProxy: Union[PySide6.QtNetwork.QNetworkProxy, PySide6.QtNetwork.QNetworkProxy.ProxyType]) -> None setProxy(self, networkProxy: Union[PySide6.QtNetwork.QNetworkProxy, PySide6.QtNetwork.QNetworkProxy.ProxyType]) -> None [extrait de setProxy.__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__]
setSocketError(self, socketError: PySide6.QtNetwork.QAbstractSocket.SocketError) -> None setSocketError(self, socketError: PySide6.QtNetwork.QAbstractSocket.SocketError) -> None [extrait de setSocketError.__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__]
setSocketState(self, state: PySide6.QtNetwork.QAbstractSocket.SocketState) -> None setSocketState(self, state: PySide6.QtNetwork.QAbstractSocket.SocketState) -> None [extrait de setSocketState.__doc__]
skipData(self, maxSize: int) -> int skipData(self, maxSize: int) -> int [extrait de skipData.__doc__]
socketDescriptor(self) -> int socketDescriptor(self) -> int [extrait de socketDescriptor.__doc__]
SocketError
SocketOption
socketOption(self, option: PySide6.QtNetwork.QAbstractSocket.SocketOption) -> Any socketOption(self, option: PySide6.QtNetwork.QAbstractSocket.SocketOption) -> Any [extrait de socketOption.__doc__]
SocketState
SocketType
socketType(self) -> PySide6.QtNetwork.QAbstractSocket.SocketType socketType(self) -> PySide6.QtNetwork.QAbstractSocket.SocketType [extrait de socketType.__doc__]
state(self) -> PySide6.QtNetwork.QAbstractSocket.SocketState state(self) -> PySide6.QtNetwork.QAbstractSocket.SocketState [extrait de state.__doc__]
stateChanged
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__]
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 QIODevice

__init_subclass__, __subclasshook__, atEnd, canReadLine, commitTransaction, currentReadChannel, currentWriteChannel, errorString, getChar, isOpen, isReadable, isTextModeEnabled, isTransactionStarted, isWritable, open, openMode, peek, pos, putChar, read, readAll, readChannelCount, readLine, 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__