![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qabstractsocket_p.h>
Static Public Member Functions | |
| static void | pauseSocketNotifiers (QAbstractSocket *) |
| static void | resumeSocketNotifiers (QAbstractSocket *) |
| static QAbstractSocketEngine * | getSocketEngine (QAbstractSocket *) |
| Static Public Member Functions inherited from QObjectPrivate | |
| static bool | removeConnection (Connection *c) |
| static QObjectPrivate * | get (QObject *o) |
| static const QObjectPrivate * | get (const QObject *o) |
| template<typename Func1, typename Func2> | |
| static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
| template<typename Func1, typename Func2> | |
| static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
| static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
| static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Additional Inherited Members | |
| Public Types inherited from QIODevicePrivate | |
| enum class | ReadLineOption { NotNullTerminated , NullTerminated } |
| enum | AccessMode : quint8 { Unset , Sequential , RandomAccess } |
| Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Definition at line 34 of file qabstractsocket_p.h.
| QAbstractSocketPrivate::QAbstractSocketPrivate | ( | decltype(QObjectPrivateVersion) | version = QObjectPrivateVersion | ) |
Constructs a QAbstractSocketPrivate. Initializes all members.
Definition at line 511 of file qabstractsocket.cpp.
|
virtual |
Destructs the QAbstractSocket. If the socket layer is open, it will be reset.
Definition at line 522 of file qabstractsocket.cpp.
| void QAbstractSocketPrivate::_q_abortConnectionAttempt | ( | ) |
This function is called after a certain number of seconds has passed while waiting for a connection. It simply tests the connection, and continues to the next address if the connection failed.
Definition at line 1138 of file qabstractsocket.cpp.
| void QAbstractSocketPrivate::_q_connectToNextAddress | ( | ) |
Called by a queued or direct connection from _q_startConnecting() or _q_testConnection(), this function takes the first address of the pending addresses list and tries to connect to it. If the connection succeeds, QAbstractSocket will emit connected(). Otherwise, errorOccurred(ConnectionRefusedError) or errorOccurred(SocketTimeoutError) is emitted.
Definition at line 1012 of file qabstractsocket.cpp.
Slot connected to QHostInfo::lookupHost() in connectToHost(). This function starts the process of connecting to any number of candidate IP addresses for the host, if it was found. Calls _q_connectToNextAddress().
Definition at line 940 of file qabstractsocket.cpp.
| void QAbstractSocketPrivate::_q_testConnection | ( | ) |
Tests if a connection has been established. If it has, connected() is emitted. Otherwise, _q_connectToNextAddress() is invoked.
Definition at line 1102 of file qabstractsocket.cpp.
|
virtual |
Reimplemented in QSslSocketPrivate.
Definition at line 1520 of file qabstractsocket.cpp.
| void QAbstractSocketPrivate::canCloseNotification | ( | ) |
Slot connected to the close socket notifier. It's called when the socket is closed.
Definition at line 689 of file qabstractsocket.cpp.
|
virtual |
Slot connected to the read socket notifier. This slot is called when new data is available for reading, or when the socket has been closed. Handles recursive calls.
Reimplemented in QSctpSocketPrivate.
Definition at line 621 of file qabstractsocket.cpp.
| bool QAbstractSocketPrivate::canWriteNotification | ( | ) |
Slot connected to the write socket notifier. It's called during a delayed connect or when the socket is ready for writing.
Definition at line 733 of file qabstractsocket.cpp.
|
inlineoverridevirtual |
Implements QAbstractSocketEngineReceiver.
Definition at line 46 of file qabstractsocket_p.h.
|
virtual |
Reimplemented in QSctpSocketPrivate.
Definition at line 605 of file qabstractsocket.cpp.
|
overridevirtual |
Slot connected to a notification of connection status change. Either we finished connecting or we failed to connect.
Implements QAbstractSocketEngineReceiver.
Definition at line 747 of file qabstractsocket.cpp.
Emits bytesWritten(), protecting against recursion.
Definition at line 1247 of file qabstractsocket.cpp.
| void QAbstractSocketPrivate::emitReadyRead | ( | int | channel = 0 | ) |
Emits readyRead(), protecting against recursion.
Definition at line 1230 of file qabstractsocket.cpp.
|
inlineoverridevirtual |
Implements QAbstractSocketEngineReceiver.
Definition at line 45 of file qabstractsocket_p.h.
| void QAbstractSocketPrivate::fetchConnectionParameters | ( | ) |
Sets up the internal state after the connection has succeeded.
Definition at line 1267 of file qabstractsocket.cpp.
|
virtual |
Writes pending data in the write buffers to the socket. The function writes as much as it can without blocking. If any data was written, this function returns true; otherwise false is returned.
Reimplemented in QSslSocketPrivate.
Definition at line 832 of file qabstractsocket.cpp.
Referenced by testing.tools.encode_pdf_filter._SinkPdfStream::close().
|
static |
Definition at line 1372 of file qabstractsocket.cpp.
| bool QAbstractSocketPrivate::initSocketLayer | ( | QAbstractSocket::NetworkLayerProtocol | protocol | ) |
Initializes the socket layer to by of type type, using the network layer protocol protocol. Resets the socket layer first if it's already initialized. Sets up the socket notifiers.
Definition at line 554 of file qabstractsocket.cpp.
|
static |
Definition at line 1322 of file qabstractsocket.cpp.
|
inlineoverridevirtual |
Implements QAbstractSocketEngineReceiver.
Definition at line 49 of file qabstractsocket_p.h.
| bool QAbstractSocketPrivate::readFromSocket | ( | ) |
Reads data from the socket layer into the read buffer. Returns true on success; otherwise false.
Definition at line 1165 of file qabstractsocket.cpp.
|
inlineoverridevirtual |
Implements QAbstractSocketEngineReceiver.
Definition at line 43 of file qabstractsocket_p.h.
| void QAbstractSocketPrivate::resetSocketLayer | ( | ) |
Resets the socket layer and deletes any socket notifiers.
Definition at line 530 of file qabstractsocket.cpp.
Resolve the proxy to its final value.
Definition at line 847 of file qabstractsocket.cpp.
Definition at line 98 of file qabstractsocket_p.h.
|
static |
Definition at line 1352 of file qabstractsocket.cpp.
| void QAbstractSocketPrivate::setError | ( | QAbstractSocket::SocketError | errorCode, |
| const QString & | errStr ) |
Sets the socket error state to errorCode and errorString.
Definition at line 1382 of file qabstractsocket.cpp.
| void QAbstractSocketPrivate::setErrorAndEmit | ( | QAbstractSocket::SocketError | errorCode, |
| const QString & | errorString ) |
Sets the socket error state to errorCode and errorString, and emits the QAbstractSocket::errorOccurred() signal.
Definition at line 1395 of file qabstractsocket.cpp.
Starts the connection to host, like _q_startConnecting below, but without hostname resolution.
Definition at line 896 of file qabstractsocket.cpp.
|
inlineoverridevirtual |
Implements QAbstractSocketEngineReceiver.
Definition at line 44 of file qabstractsocket_p.h.
|
virtual |
Writes one pending data block in the write buffer to the socket.
It is usually invoked by canWriteNotification after one or more calls to write().
Emits bytesWritten().
Reimplemented in QSctpSocketPrivate.
Definition at line 768 of file qabstractsocket.cpp.
| bool QAbstractSocketPrivate::abortCalled = false |
Definition at line 71 of file qabstractsocket_p.h.
| QList<QHostAddress> QAbstractSocketPrivate::addresses |
Definition at line 79 of file qabstractsocket_p.h.
| quint32 QAbstractSocketPrivate::bytesWrittenEmissionCount = 0 |
Definition at line 120 of file qabstractsocket_p.h.
| qintptr QAbstractSocketPrivate::cachedSocketDescriptor = -1 |
Definition at line 88 of file qabstractsocket_p.h.
Definition at line 122 of file qabstractsocket_p.h.
| bool QAbstractSocketPrivate::emittedBytesWritten = false |
Definition at line 69 of file qabstractsocket_p.h.
| bool QAbstractSocketPrivate::emittedReadyRead = false |
Definition at line 68 of file qabstractsocket_p.h.
| bool QAbstractSocketPrivate::hasPendingData = false |
Definition at line 117 of file qabstractsocket_p.h.
| bool QAbstractSocketPrivate::hasPendingDatagram = false |
Definition at line 118 of file qabstractsocket_p.h.
| QHostAddress QAbstractSocketPrivate::host |
Definition at line 78 of file qabstractsocket_p.h.
| int QAbstractSocketPrivate::hostLookupId = -1 |
Definition at line 124 of file qabstractsocket_p.h.
| QString QAbstractSocketPrivate::hostName |
Definition at line 76 of file qabstractsocket_p.h.
| bool QAbstractSocketPrivate::isBuffered = false |
Definition at line 116 of file qabstractsocket_p.h.
| QHostAddress QAbstractSocketPrivate::localAddress |
Definition at line 83 of file qabstractsocket_p.h.
| quint16 QAbstractSocketPrivate::localPort = 0 |
Definition at line 81 of file qabstractsocket_p.h.
| QAbstractSocket::PauseModes QAbstractSocketPrivate::pauseMode = QAbstractSocket::PauseNever |
Definition at line 74 of file qabstractsocket_p.h.
| QHostAddress QAbstractSocketPrivate::peerAddress |
Definition at line 84 of file qabstractsocket_p.h.
| QString QAbstractSocketPrivate::peerName |
Definition at line 85 of file qabstractsocket_p.h.
| quint16 QAbstractSocketPrivate::peerPort = 0 |
Definition at line 82 of file qabstractsocket_p.h.
| bool QAbstractSocketPrivate::pendingClose = false |
Definition at line 72 of file qabstractsocket_p.h.
| quint16 QAbstractSocketPrivate::port = 0 |
Definition at line 77 of file qabstractsocket_p.h.
| QAbstractSocket::NetworkLayerProtocol QAbstractSocketPrivate::preferredNetworkLayerProtocol |
Definition at line 132 of file qabstractsocket_p.h.
| bool QAbstractSocketPrivate::prePauseExceptionSocketNotifierState = false |
Definition at line 137 of file qabstractsocket_p.h.
| bool QAbstractSocketPrivate::prePauseReadSocketNotifierState = false |
Definition at line 135 of file qabstractsocket_p.h.
| bool QAbstractSocketPrivate::prePauseWriteSocketNotifierState = false |
Definition at line 136 of file qabstractsocket_p.h.
| QString QAbstractSocketPrivate::protocolTag |
Definition at line 93 of file qabstractsocket_p.h.
| QNetworkProxy QAbstractSocketPrivate::proxy |
Definition at line 91 of file qabstractsocket_p.h.
| QNetworkProxy QAbstractSocketPrivate::proxyInUse |
Definition at line 92 of file qabstractsocket_p.h.
| qint64 QAbstractSocketPrivate::readBufferMaxSize = 0 |
Definition at line 115 of file qabstractsocket_p.h.
| QAbstractSocketEngine* QAbstractSocketPrivate::socketEngine = nullptr |
Definition at line 87 of file qabstractsocket_p.h.
| QAbstractSocket::SocketError QAbstractSocketPrivate::socketError = QAbstractSocket::UnknownSocketError |
Definition at line 130 of file qabstractsocket_p.h.
| QAbstractSocket::SocketType QAbstractSocketPrivate::socketType = QAbstractSocket::UnknownSocketType |
Definition at line 126 of file qabstractsocket_p.h.
| QAbstractSocket::SocketState QAbstractSocketPrivate::state = QAbstractSocket::UnconnectedState |
Definition at line 127 of file qabstractsocket_p.h.