API reference - Class QAbstractSocket

Notation used in Ruby API documentation

Module: QtNetwork

Description: Binding of QAbstractSocket

Class hierarchy: QAbstractSocket » QIODevice » QObject

Sub-classes: BindFlag, QFlags_BindFlag, NetworkLayerProtocol, QFlags_NetworkLayerProtocol, PauseMode, QFlags_PauseMode, SocketError, QFlags_SocketError, SocketOption, QFlags_SocketOption, SocketState, QFlags_SocketState, SocketType, QFlags_SocketType

Public constructors

new QAbstractSocketnew(const QAbstractSocket_SocketType socketType,
QObject ptr parent)
Constructor QAbstractSocket::QAbstractSocket(QAbstractSocket::SocketType socketType, 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 QAbstractSocket::abort()
[signal]voidaboutToCloseSignal declaration for QAbstractSocket::aboutToClose()
[const]boolatEndMethod bool QAbstractSocket::atEnd()
boolbind(const QHostAddress address,
unsigned short port = 0,
QAbstractSocket_QFlags_BindFlag mode = QAbstractSocket::DefaultForPlatform)
Method bool QAbstractSocket::bind(const QHostAddress &address, quint16 port, QFlags<QAbstractSocket::BindFlag> mode)
boolbind(unsigned short port = 0,
QAbstractSocket_QFlags_BindFlag mode = QAbstractSocket::DefaultForPlatform)
Method bool QAbstractSocket::bind(quint16 port, QFlags<QAbstractSocket::BindFlag> mode)
[const]long longbytesAvailableMethod qint64 QAbstractSocket::bytesAvailable()
[const]long longbytesToWriteMethod qint64 QAbstractSocket::bytesToWrite()
[signal]voidbytesWritten(long long bytes)Signal declaration for QAbstractSocket::bytesWritten(qint64 bytes)
[const]boolcanReadLineMethod bool QAbstractSocket::canReadLine()
voidcloseMethod void QAbstractSocket::close()
voidconnectToHost(string hostName,
unsigned short port,
QIODevice_QFlags_OpenModeFlag mode = QIODevice::ReadWrite,
const QAbstractSocket_NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol)
Method void QAbstractSocket::connectToHost(const QString &hostName, quint16 port, QFlags<QIODevice::OpenModeFlag> mode, QAbstractSocket::NetworkLayerProtocol protocol)
voidconnectToHost(const QHostAddress address,
unsigned short port,
QIODevice_QFlags_OpenModeFlag mode = QIODevice::ReadWrite)
Method void QAbstractSocket::connectToHost(const QHostAddress &address, quint16 port, QFlags<QIODevice::OpenModeFlag> mode)
[signal]voidconnectedSignal declaration for QAbstractSocket::connected()
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QAbstractSocket::destroyed(QObject *)
voiddisconnectFromHostMethod void QAbstractSocket::disconnectFromHost()
[signal]voiddisconnectedSignal declaration for QAbstractSocket::disconnected()
[const]QAbstractSocket_SocketErrorerrorMethod QAbstractSocket::SocketError QAbstractSocket::error()
[signal]voiderror_sig(const QAbstractSocket_SocketError arg1)Signal declaration for QAbstractSocket::error(QAbstractSocket::SocketError)
boolflushMethod bool QAbstractSocket::flush()
[signal]voidhostFoundSignal declaration for QAbstractSocket::hostFound()
[const]boolisSequential?Method bool QAbstractSocket::isSequential()
[const]boolisValid?Method bool QAbstractSocket::isValid()
[const]QHostAddresslocalAddressMethod QHostAddress QAbstractSocket::localAddress()
[const]unsigned shortlocalPortMethod quint16 QAbstractSocket::localPort()
[signal]voidobjectNameChanged(string objectName)Signal declaration for QAbstractSocket::objectNameChanged(const QString &objectName)
[const]QAbstractSocket_QFlags_PauseModepauseModeMethod QFlags<QAbstractSocket::PauseMode> QAbstractSocket::pauseMode()
voidpauseMode=(QAbstractSocket_QFlags_PauseMode pauseMode)Method void QAbstractSocket::setPauseMode(QFlags<QAbstractSocket::PauseMode> pauseMode)
[const]QHostAddresspeerAddressMethod QHostAddress QAbstractSocket::peerAddress()
[const]stringpeerNameMethod QString QAbstractSocket::peerName()
[const]unsigned shortpeerPortMethod quint16 QAbstractSocket::peerPort()
[const]QNetworkProxyproxyMethod QNetworkProxy QAbstractSocket::proxy()
voidproxy=(const QNetworkProxy networkProxy)Method void QAbstractSocket::setProxy(const QNetworkProxy &networkProxy)
[signal]voidproxyAuthenticationRequired(const QNetworkProxy proxy,
QAuthenticator ptr authenticator)
Signal declaration for QAbstractSocket::proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator)
[const]long longreadBufferSizeMethod qint64 QAbstractSocket::readBufferSize()
voidreadBufferSize=(long long size)Method void QAbstractSocket::setReadBufferSize(qint64 size)
[signal]voidreadChannelFinishedSignal declaration for QAbstractSocket::readChannelFinished()
[signal]voidreadyReadSignal declaration for QAbstractSocket::readyRead()
voidresumeMethod void QAbstractSocket::resume()
voidsetPauseMode(QAbstractSocket_QFlags_PauseMode pauseMode)Method void QAbstractSocket::setPauseMode(QFlags<QAbstractSocket::PauseMode> pauseMode)
voidsetProxy(const QNetworkProxy networkProxy)Method void QAbstractSocket::setProxy(const QNetworkProxy &networkProxy)
voidsetReadBufferSize(long long size)Method void QAbstractSocket::setReadBufferSize(qint64 size)
boolsetSocketDescriptor(long long socketDescriptor,
const QAbstractSocket_SocketState state = QAbstractSocket::ConnectedState,
QIODevice_QFlags_OpenModeFlag openMode = QIODevice::ReadWrite)
Method bool QAbstractSocket::setSocketDescriptor(QIntegerForSizeof<void*>::Signed socketDescriptor, QAbstractSocket::SocketState state, QFlags<QIODevice::OpenModeFlag> openMode)
voidsetSocketOption(const QAbstractSocket_SocketOption option,
variant value)
Method void QAbstractSocket::setSocketOption(QAbstractSocket::SocketOption option, const QVariant &value)
[const]long longsocketDescriptorMethod QIntegerForSizeof<void*>::Signed QAbstractSocket::socketDescriptor()
variantsocketOption(const QAbstractSocket_SocketOption option)Method QVariant QAbstractSocket::socketOption(QAbstractSocket::SocketOption option)
[const]QAbstractSocket_SocketTypesocketTypeMethod QAbstractSocket::SocketType QAbstractSocket::socketType()
[const]QAbstractSocket_SocketStatestateMethod QAbstractSocket::SocketState QAbstractSocket::state()
[signal]voidstateChanged(const QAbstractSocket_SocketState arg1)Signal declaration for QAbstractSocket::stateChanged(QAbstractSocket::SocketState)
boolwaitForBytesWritten(int msecs = 30000)Method bool QAbstractSocket::waitForBytesWritten(int msecs)
boolwaitForConnected(int msecs = 30000)Method bool QAbstractSocket::waitForConnected(int msecs)
boolwaitForDisconnected(int msecs = 30000)Method bool QAbstractSocket::waitForDisconnected(int msecs)
boolwaitForReadyRead(int msecs = 30000)Method bool QAbstractSocket::waitForReadyRead(int msecs)

Public static methods and constants

[static,const]QAbstractSocket_SocketErrorAddressInUseErrorEnum constant QAbstractSocket::AddressInUseError
[static,const]QAbstractSocket_NetworkLayerProtocolAnyIPProtocolEnum constant QAbstractSocket::AnyIPProtocol
[static,const]QAbstractSocket_SocketStateBoundStateEnum constant QAbstractSocket::BoundState
[static,const]QAbstractSocket_SocketStateClosingStateEnum constant QAbstractSocket::ClosingState
[static,const]QAbstractSocket_SocketStateConnectedStateEnum constant QAbstractSocket::ConnectedState
[static,const]QAbstractSocket_SocketStateConnectingStateEnum constant QAbstractSocket::ConnectingState
[static,const]QAbstractSocket_SocketErrorConnectionRefusedErrorEnum constant QAbstractSocket::ConnectionRefusedError
[static,const]QAbstractSocket_SocketErrorDatagramTooLargeErrorEnum constant QAbstractSocket::DatagramTooLargeError
[static,const]QAbstractSocket_BindFlagDefaultForPlatformEnum constant QAbstractSocket::DefaultForPlatform
[static,const]QAbstractSocket_BindFlagDontShareAddressEnum constant QAbstractSocket::DontShareAddress
[static,const]QAbstractSocket_SocketStateHostLookupStateEnum constant QAbstractSocket::HostLookupState
[static,const]QAbstractSocket_SocketErrorHostNotFoundErrorEnum constant QAbstractSocket::HostNotFoundError
[static,const]QAbstractSocket_NetworkLayerProtocolIPv4ProtocolEnum constant QAbstractSocket::IPv4Protocol
[static,const]QAbstractSocket_NetworkLayerProtocolIPv6ProtocolEnum constant QAbstractSocket::IPv6Protocol
[static,const]QAbstractSocket_SocketOptionKeepAliveOptionEnum constant QAbstractSocket::KeepAliveOption
[static,const]QAbstractSocket_SocketStateListeningStateEnum constant QAbstractSocket::ListeningState
[static,const]QAbstractSocket_SocketOptionLowDelayOptionEnum constant QAbstractSocket::LowDelayOption
[static,const]QAbstractSocket_SocketOptionMulticastLoopbackOptionEnum constant QAbstractSocket::MulticastLoopbackOption
[static,const]QAbstractSocket_SocketOptionMulticastTtlOptionEnum constant QAbstractSocket::MulticastTtlOption
[static,const]QAbstractSocket_SocketErrorNetworkErrorEnum constant QAbstractSocket::NetworkError
[static,const]QAbstractSocket_SocketErrorOperationErrorEnum constant QAbstractSocket::OperationError
[static,const]QAbstractSocket_PauseModePauseNeverEnum constant QAbstractSocket::PauseNever
[static,const]QAbstractSocket_PauseModePauseOnSslErrorsEnum constant QAbstractSocket::PauseOnSslErrors
[static,const]QAbstractSocket_SocketErrorProxyAuthenticationRequiredErrorEnum constant QAbstractSocket::ProxyAuthenticationRequiredError
[static,const]QAbstractSocket_SocketErrorProxyConnectionClosedErrorEnum constant QAbstractSocket::ProxyConnectionClosedError
[static,const]QAbstractSocket_SocketErrorProxyConnectionRefusedErrorEnum constant QAbstractSocket::ProxyConnectionRefusedError
[static,const]QAbstractSocket_SocketErrorProxyConnectionTimeoutErrorEnum constant QAbstractSocket::ProxyConnectionTimeoutError
[static,const]QAbstractSocket_SocketErrorProxyNotFoundErrorEnum constant QAbstractSocket::ProxyNotFoundError
[static,const]QAbstractSocket_SocketErrorProxyProtocolErrorEnum constant QAbstractSocket::ProxyProtocolError
[static,const]QAbstractSocket_SocketOptionReceiveBufferSizeSocketOptionEnum constant QAbstractSocket::ReceiveBufferSizeSocketOption
[static,const]QAbstractSocket_SocketErrorRemoteHostClosedErrorEnum constant QAbstractSocket::RemoteHostClosedError
[static,const]QAbstractSocket_BindFlagReuseAddressHintEnum constant QAbstractSocket::ReuseAddressHint
[static,const]QAbstractSocket_SocketOptionSendBufferSizeSocketOptionEnum constant QAbstractSocket::SendBufferSizeSocketOption
[static,const]QAbstractSocket_BindFlagShareAddressEnum constant QAbstractSocket::ShareAddress
[static,const]QAbstractSocket_SocketErrorSocketAccessErrorEnum constant QAbstractSocket::SocketAccessError
[static,const]QAbstractSocket_SocketErrorSocketAddressNotAvailableErrorEnum constant QAbstractSocket::SocketAddressNotAvailableError
[static,const]QAbstractSocket_SocketErrorSocketResourceErrorEnum constant QAbstractSocket::SocketResourceError
[static,const]QAbstractSocket_SocketErrorSocketTimeoutErrorEnum constant QAbstractSocket::SocketTimeoutError
[static,const]QAbstractSocket_SocketErrorSslHandshakeFailedErrorEnum constant QAbstractSocket::SslHandshakeFailedError
[static,const]QAbstractSocket_SocketErrorSslInternalErrorEnum constant QAbstractSocket::SslInternalError
[static,const]QAbstractSocket_SocketErrorSslInvalidUserDataErrorEnum constant QAbstractSocket::SslInvalidUserDataError
[static,const]QAbstractSocket_SocketTypeTcpSocketEnum constant QAbstractSocket::TcpSocket
[static,const]QAbstractSocket_SocketErrorTemporaryErrorEnum constant QAbstractSocket::TemporaryError
[static,const]QAbstractSocket_SocketOptionTypeOfServiceOptionEnum constant QAbstractSocket::TypeOfServiceOption
[static,const]QAbstractSocket_SocketTypeUdpSocketEnum constant QAbstractSocket::UdpSocket
[static,const]QAbstractSocket_SocketStateUnconnectedStateEnum constant QAbstractSocket::UnconnectedState
[static,const]QAbstractSocket_SocketErrorUnfinishedSocketOperationErrorEnum constant QAbstractSocket::UnfinishedSocketOperationError
[static,const]QAbstractSocket_NetworkLayerProtocolUnknownNetworkLayerProtocolEnum constant QAbstractSocket::UnknownNetworkLayerProtocol
[static,const]QAbstractSocket_SocketErrorUnknownSocketErrorEnum constant QAbstractSocket::UnknownSocketError
[static,const]QAbstractSocket_SocketTypeUnknownSocketTypeEnum constant QAbstractSocket::UnknownSocketType
[static,const]QAbstractSocket_SocketErrorUnsupportedSocketOperationErrorEnum constant QAbstractSocket::UnsupportedSocketOperationError
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = nullptr,
int n = -1)
Static method QString QAbstractSocket::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = nullptr,
int n = -1)
Static method QString QAbstractSocket::trUtf8(const char *s, const char *c, int n)

Detailed description

AddressInUseError

Signature: [static,const] QAbstractSocket_SocketError AddressInUseError

Description: Enum constant QAbstractSocket::AddressInUseError

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

AnyIPProtocol

Signature: [static,const] QAbstractSocket_NetworkLayerProtocol AnyIPProtocol

Description: Enum constant QAbstractSocket::AnyIPProtocol

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

BoundState

Signature: [static,const] QAbstractSocket_SocketState BoundState

Description: Enum constant QAbstractSocket::BoundState

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

ClosingState

Signature: [static,const] QAbstractSocket_SocketState ClosingState

Description: Enum constant QAbstractSocket::ClosingState

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

ConnectedState

Signature: [static,const] QAbstractSocket_SocketState ConnectedState

Description: Enum constant QAbstractSocket::ConnectedState

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

ConnectingState

Signature: [static,const] QAbstractSocket_SocketState ConnectingState

Description: Enum constant QAbstractSocket::ConnectingState

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

ConnectionRefusedError

Signature: [static,const] QAbstractSocket_SocketError ConnectionRefusedError

Description: Enum constant QAbstractSocket::ConnectionRefusedError

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

DatagramTooLargeError

Signature: [static,const] QAbstractSocket_SocketError DatagramTooLargeError

Description: Enum constant QAbstractSocket::DatagramTooLargeError

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

DefaultForPlatform

Signature: [static,const] QAbstractSocket_BindFlag DefaultForPlatform

Description: Enum constant QAbstractSocket::DefaultForPlatform

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

DontShareAddress

Signature: [static,const] QAbstractSocket_BindFlag DontShareAddress

Description: Enum constant QAbstractSocket::DontShareAddress

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

HostLookupState

Signature: [static,const] QAbstractSocket_SocketState HostLookupState

Description: Enum constant QAbstractSocket::HostLookupState

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

HostNotFoundError

Signature: [static,const] QAbstractSocket_SocketError HostNotFoundError

Description: Enum constant QAbstractSocket::HostNotFoundError

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

IPv4Protocol

Signature: [static,const] QAbstractSocket_NetworkLayerProtocol IPv4Protocol

Description: Enum constant QAbstractSocket::IPv4Protocol

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

IPv6Protocol

Signature: [static,const] QAbstractSocket_NetworkLayerProtocol IPv6Protocol

Description: Enum constant QAbstractSocket::IPv6Protocol

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

KeepAliveOption

Signature: [static,const] QAbstractSocket_SocketOption KeepAliveOption

Description: Enum constant QAbstractSocket::KeepAliveOption

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

ListeningState

Signature: [static,const] QAbstractSocket_SocketState ListeningState

Description: Enum constant QAbstractSocket::ListeningState

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

LowDelayOption

Signature: [static,const] QAbstractSocket_SocketOption LowDelayOption

Description: Enum constant QAbstractSocket::LowDelayOption

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

MulticastLoopbackOption

Signature: [static,const] QAbstractSocket_SocketOption MulticastLoopbackOption

Description: Enum constant QAbstractSocket::MulticastLoopbackOption

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

MulticastTtlOption

Signature: [static,const] QAbstractSocket_SocketOption MulticastTtlOption

Description: Enum constant QAbstractSocket::MulticastTtlOption

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

NetworkError

Signature: [static,const] QAbstractSocket_SocketError NetworkError

Description: Enum constant QAbstractSocket::NetworkError

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

OperationError

Signature: [static,const] QAbstractSocket_SocketError OperationError

Description: Enum constant QAbstractSocket::OperationError

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

PauseNever

Signature: [static,const] QAbstractSocket_PauseMode PauseNever

Description: Enum constant QAbstractSocket::PauseNever

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

PauseOnSslErrors

Signature: [static,const] QAbstractSocket_PauseMode PauseOnSslErrors

Description: Enum constant QAbstractSocket::PauseOnSslErrors

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

ProxyAuthenticationRequiredError

Signature: [static,const] QAbstractSocket_SocketError ProxyAuthenticationRequiredError

Description: Enum constant QAbstractSocket::ProxyAuthenticationRequiredError

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

ProxyConnectionClosedError

Signature: [static,const] QAbstractSocket_SocketError ProxyConnectionClosedError

Description: Enum constant QAbstractSocket::ProxyConnectionClosedError

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

ProxyConnectionRefusedError

Signature: [static,const] QAbstractSocket_SocketError ProxyConnectionRefusedError

Description: Enum constant QAbstractSocket::ProxyConnectionRefusedError

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

ProxyConnectionTimeoutError

Signature: [static,const] QAbstractSocket_SocketError ProxyConnectionTimeoutError

Description: Enum constant QAbstractSocket::ProxyConnectionTimeoutError

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

ProxyNotFoundError

Signature: [static,const] QAbstractSocket_SocketError ProxyNotFoundError

Description: Enum constant QAbstractSocket::ProxyNotFoundError

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

ProxyProtocolError

Signature: [static,const] QAbstractSocket_SocketError ProxyProtocolError

Description: Enum constant QAbstractSocket::ProxyProtocolError

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

ReceiveBufferSizeSocketOption

Signature: [static,const] QAbstractSocket_SocketOption ReceiveBufferSizeSocketOption

Description: Enum constant QAbstractSocket::ReceiveBufferSizeSocketOption

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

RemoteHostClosedError

Signature: [static,const] QAbstractSocket_SocketError RemoteHostClosedError

Description: Enum constant QAbstractSocket::RemoteHostClosedError

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

ReuseAddressHint

Signature: [static,const] QAbstractSocket_BindFlag ReuseAddressHint

Description: Enum constant QAbstractSocket::ReuseAddressHint

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

SendBufferSizeSocketOption

Signature: [static,const] QAbstractSocket_SocketOption SendBufferSizeSocketOption

Description: Enum constant QAbstractSocket::SendBufferSizeSocketOption

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

ShareAddress

Signature: [static,const] QAbstractSocket_BindFlag ShareAddress

Description: Enum constant QAbstractSocket::ShareAddress

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

SocketAccessError

Signature: [static,const] QAbstractSocket_SocketError SocketAccessError

Description: Enum constant QAbstractSocket::SocketAccessError

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

SocketAddressNotAvailableError

Signature: [static,const] QAbstractSocket_SocketError SocketAddressNotAvailableError

Description: Enum constant QAbstractSocket::SocketAddressNotAvailableError

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

SocketResourceError

Signature: [static,const] QAbstractSocket_SocketError SocketResourceError

Description: Enum constant QAbstractSocket::SocketResourceError

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

SocketTimeoutError

Signature: [static,const] QAbstractSocket_SocketError SocketTimeoutError

Description: Enum constant QAbstractSocket::SocketTimeoutError

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

SslHandshakeFailedError

Signature: [static,const] QAbstractSocket_SocketError SslHandshakeFailedError

Description: Enum constant QAbstractSocket::SslHandshakeFailedError

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

SslInternalError

Signature: [static,const] QAbstractSocket_SocketError SslInternalError

Description: Enum constant QAbstractSocket::SslInternalError

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

SslInvalidUserDataError

Signature: [static,const] QAbstractSocket_SocketError SslInvalidUserDataError

Description: Enum constant QAbstractSocket::SslInvalidUserDataError

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

TcpSocket

Signature: [static,const] QAbstractSocket_SocketType TcpSocket

Description: Enum constant QAbstractSocket::TcpSocket

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

TemporaryError

Signature: [static,const] QAbstractSocket_SocketError TemporaryError

Description: Enum constant QAbstractSocket::TemporaryError

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

TypeOfServiceOption

Signature: [static,const] QAbstractSocket_SocketOption TypeOfServiceOption

Description: Enum constant QAbstractSocket::TypeOfServiceOption

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

UdpSocket

Signature: [static,const] QAbstractSocket_SocketType UdpSocket

Description: Enum constant QAbstractSocket::UdpSocket

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

UnconnectedState

Signature: [static,const] QAbstractSocket_SocketState UnconnectedState

Description: Enum constant QAbstractSocket::UnconnectedState

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

UnfinishedSocketOperationError

Signature: [static,const] QAbstractSocket_SocketError UnfinishedSocketOperationError

Description: Enum constant QAbstractSocket::UnfinishedSocketOperationError

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

UnknownNetworkLayerProtocol

Signature: [static,const] QAbstractSocket_NetworkLayerProtocol UnknownNetworkLayerProtocol

Description: Enum constant QAbstractSocket::UnknownNetworkLayerProtocol

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

UnknownSocketError

Signature: [static,const] QAbstractSocket_SocketError UnknownSocketError

Description: Enum constant QAbstractSocket::UnknownSocketError

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

UnknownSocketType

Signature: [static,const] QAbstractSocket_SocketType UnknownSocketType

Description: Enum constant QAbstractSocket::UnknownSocketType

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

UnsupportedSocketOperationError

Signature: [static,const] QAbstractSocket_SocketError UnsupportedSocketOperationError

Description: Enum constant QAbstractSocket::UnsupportedSocketOperationError

Python specific notes:
The object exposes a readable attribute 'UnsupportedSocketOperationError'. 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 QAbstractSocket::abort()

aboutToClose

Signature: [signal] void aboutToClose

Description: Signal declaration for QAbstractSocket::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.

atEnd

Signature: [const] bool atEnd

Description: Method bool QAbstractSocket::atEnd()

This is a reimplementation of QIODevice::atEnd

bind

(1) Signature: bool bind (const QHostAddress address, unsigned short port = 0, QAbstractSocket_QFlags_BindFlag mode = QAbstractSocket::DefaultForPlatform)

Description: Method bool QAbstractSocket::bind(const QHostAddress &address, quint16 port, QFlags<QAbstractSocket::BindFlag> mode)

(2) Signature: bool bind (unsigned short port = 0, QAbstractSocket_QFlags_BindFlag mode = QAbstractSocket::DefaultForPlatform)

Description: Method bool QAbstractSocket::bind(quint16 port, QFlags<QAbstractSocket::BindFlag> mode)

bytesAvailable

Signature: [const] long long bytesAvailable

Description: Method qint64 QAbstractSocket::bytesAvailable()

This is a reimplementation of QIODevice::bytesAvailable

bytesToWrite

Signature: [const] long long bytesToWrite

Description: Method qint64 QAbstractSocket::bytesToWrite()

This is a reimplementation of QIODevice::bytesToWrite

bytesWritten

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

Description: Signal declaration for QAbstractSocket::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.

canReadLine

Signature: [const] bool canReadLine

Description: Method bool QAbstractSocket::canReadLine()

This is a reimplementation of QIODevice::canReadLine

close

Signature: void close

Description: Method void QAbstractSocket::close()

This is a reimplementation of QIODevice::close

connectToHost

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

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

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

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

connected

Signature: [signal] void connected

Description: Signal declaration for QAbstractSocket::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.

destroyed

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

Description: Signal declaration for QAbstractSocket::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 QAbstractSocket::disconnectFromHost()

disconnected

Signature: [signal] void disconnected

Description: Signal declaration for QAbstractSocket::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.

error

Signature: [const] QAbstractSocket_SocketError error

Description: Method QAbstractSocket::SocketError QAbstractSocket::error()

error_sig

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

Description: Signal declaration for QAbstractSocket::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 QAbstractSocket::flush()

hostFound

Signature: [signal] void hostFound

Description: Signal declaration for QAbstractSocket::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.

isSequential?

Signature: [const] bool isSequential?

Description: Method bool QAbstractSocket::isSequential()

This is a reimplementation of QIODevice::isSequential

isValid?

Signature: [const] bool isValid?

Description: Method bool QAbstractSocket::isValid()

localAddress

Signature: [const] QHostAddress localAddress

Description: Method QHostAddress QAbstractSocket::localAddress()

localPort

Signature: [const] unsigned short localPort

Description: Method quint16 QAbstractSocket::localPort()

new

Signature: [static] new QAbstractSocket new (const QAbstractSocket_SocketType socketType, QObject ptr parent)

Description: Constructor QAbstractSocket::QAbstractSocket(QAbstractSocket::SocketType socketType, QObject *parent)

This method creates an object of class QAbstractSocket.

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

objectNameChanged

Signature: [signal] void objectNameChanged (string objectName)

Description: Signal declaration for QAbstractSocket::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.

pauseMode

Signature: [const] QAbstractSocket_QFlags_PauseMode pauseMode

Description: Method QFlags<QAbstractSocket::PauseMode> QAbstractSocket::pauseMode()

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

pauseMode=

Signature: void pauseMode= (QAbstractSocket_QFlags_PauseMode pauseMode)

Description: Method void QAbstractSocket::setPauseMode(QFlags<QAbstractSocket::PauseMode> pauseMode)

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

peerAddress

Signature: [const] QHostAddress peerAddress

Description: Method QHostAddress QAbstractSocket::peerAddress()

peerName

Signature: [const] string peerName

Description: Method QString QAbstractSocket::peerName()

peerPort

Signature: [const] unsigned short peerPort

Description: Method quint16 QAbstractSocket::peerPort()

proxy

Signature: [const] QNetworkProxy proxy

Description: Method QNetworkProxy QAbstractSocket::proxy()

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

proxy=

Signature: void proxy= (const QNetworkProxy networkProxy)

Description: Method void QAbstractSocket::setProxy(const QNetworkProxy &networkProxy)

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

proxyAuthenticationRequired

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

Description: Signal declaration for QAbstractSocket::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: [const] long long readBufferSize

Description: Method qint64 QAbstractSocket::readBufferSize()

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

readBufferSize=

Signature: void readBufferSize= (long long size)

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

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

readChannelFinished

Signature: [signal] void readChannelFinished

Description: Signal declaration for QAbstractSocket::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 QAbstractSocket::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 QAbstractSocket::resume()

setPauseMode

Signature: void setPauseMode (QAbstractSocket_QFlags_PauseMode pauseMode)

Description: Method void QAbstractSocket::setPauseMode(QFlags<QAbstractSocket::PauseMode> pauseMode)

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

setProxy

Signature: void setProxy (const QNetworkProxy networkProxy)

Description: Method void QAbstractSocket::setProxy(const QNetworkProxy &networkProxy)

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

setReadBufferSize

Signature: void setReadBufferSize (long long size)

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

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 QAbstractSocket::setSocketDescriptor(QIntegerForSizeof<void*>::Signed socketDescriptor, QAbstractSocket::SocketState state, QFlags<QIODevice::OpenModeFlag> openMode)

setSocketOption

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

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

socketDescriptor

Signature: [const] long long socketDescriptor

Description: Method QIntegerForSizeof<void*>::Signed QAbstractSocket::socketDescriptor()

socketOption

Signature: variant socketOption (const QAbstractSocket_SocketOption option)

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

socketType

Signature: [const] QAbstractSocket_SocketType socketType

Description: Method QAbstractSocket::SocketType QAbstractSocket::socketType()

state

Signature: [const] QAbstractSocket_SocketState state

Description: Method QAbstractSocket::SocketState QAbstractSocket::state()

stateChanged

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

Description: Signal declaration for QAbstractSocket::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.

tr

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

Description: Static method QString QAbstractSocket::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 QAbstractSocket::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 QAbstractSocket::waitForBytesWritten(int msecs)

This is a reimplementation of QIODevice::waitForBytesWritten

waitForConnected

Signature: bool waitForConnected (int msecs = 30000)

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

waitForDisconnected

Signature: bool waitForDisconnected (int msecs = 30000)

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

waitForReadyRead

Signature: bool waitForReadyRead (int msecs = 30000)

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

This is a reimplementation of QIODevice::waitForReadyRead