![]() |
Qt 6.x
The Qt SDK
|
#include <qlocalsocket_p.h>
Inheritance diagram for QLocalSocketPrivate:
Collaboration diagram for QLocalSocketPrivate:Static Public Member Functions | |
| static bool | parseSockaddr (const sockaddr_un &addr, uint len, QString &fullServerName, QString &serverName, bool &abstractNamespace) |
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 | 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 81 of file qlocalsocket_p.h.
| QLocalSocketPrivate::QLocalSocketPrivate | ( | ) |
Definition at line 16 of file qlocalsocket_tcp.cpp.
| void QLocalSocketPrivate::_q_abortConnectionAttempt | ( | ) |
Definition at line 420 of file qlocalsocket_unix.cpp.
Referenced by _q_connectToSocket().
Here is the caller graph for this function:| void QLocalSocketPrivate::_q_connectToSocket | ( | ) |
Tries to connect connectingName and connectingOpenMode
Definition at line 250 of file qlocalsocket_unix.cpp.
References _q_abortConnectionAttempt(), _q_connectToSocket(), QLocalSocket::AbstractNamespaceOption, cancelDelayedConnect(), QString::clear(), connected, QAbstractSocket::ConnectedState, connectingName, connectingOpenMode, connectingSocket, QLocalSocket::ConnectionRefusedError, connectTimer, QByteArray::constData(), delayConnect, Qt::DirectConnection, QFile::encodeName(), fullServerName, function, PlatformSupportsAbstractNamespace, QT_CONNECT_TIMEOUT, qt_safe_connect(), serverName, QLocalSocket::ServerNotFoundError, QSocketNotifier::setEnabled(), setErrorAndEmit(), QAbstractSocket::setSocketDescriptor(), SIGNAL, QByteArray::size(), SLOT, QLocalSocket::SocketAccessError, QLocalSocket::SocketTimeoutError, QTimer::start(), unixSocket, QLocalSocket::UnknownSocketError, and QSocketNotifier::Write.
Referenced by _q_connectToSocket().
Here is the call graph for this function:
Here is the caller graph for this function:| void QLocalSocketPrivate::_q_errorOccurred | ( | QAbstractSocket::SocketError | newError | ) |
Definition at line 51 of file qlocalsocket_tcp.cpp.
References emit, error, QIODevicePrivate::errorString, function, and generateErrorString().
Here is the call graph for this function:| void QLocalSocketPrivate::_q_stateChanged | ( | QAbstractSocket::SocketState | newState | ) |
Definition at line 61 of file qlocalsocket_tcp.cpp.
References QString::clear(), QAbstractSocket::ClosingState, QLocalSocket::ClosingState, QAbstractSocket::ConnectedState, QLocalSocket::ConnectedState, QAbstractSocket::ConnectingState, QLocalSocket::ConnectingState, emit, fullServerName, newState(), qWarning, serverName, state, QAbstractSocket::UnconnectedState, and QLocalSocket::UnconnectedState.
Here is the call graph for this function:| void QLocalSocketPrivate::cancelDelayedConnect | ( | ) |
Definition at line 426 of file qlocalsocket_unix.cpp.
References connectTimer, delayConnect, QSocketNotifier::setEnabled(), and QTimer::stop().
Referenced by _q_connectToSocket().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 362 of file qlocalsocket_unix.cpp.
References QLocalSocket::AbstractNamespaceOption, fullServerName, parseSockaddr(), and serverName.
Here is the call graph for this function:| QString QLocalSocketPrivate::generateErrorString | ( | QLocalSocket::LocalSocketError | error, |
| const QString & | function | ||
| ) | const |
Definition at line 90 of file qlocalsocket_tcp.cpp.
References QString::arg(), QLocalSocket::ConnectionError, QLocalSocket::ConnectionRefusedError, QLocalSocket::DatagramTooLargeError, error, QIODevicePrivate::errorString, function, QLocalSocket::OperationError, QLocalSocket::PeerClosedError, QLocalSocket::ServerNotFoundError, QLocalSocket::SocketAccessError, QLocalSocket::SocketResourceError, QLocalSocket::SocketTimeoutError, QLocalSocket::UnknownSocketError, and QLocalSocket::UnsupportedSocketOperationError.
Referenced by _q_errorOccurred(), and setErrorAndEmit().
Here is the call graph for this function:
Here is the caller graph for this function:| void QLocalSocketPrivate::init | ( | ) |
Definition at line 23 of file qlocalsocket_tcp.cpp.
|
static |
Definition at line 382 of file qlocalsocket_unix.cpp.
References QChar::fromLatin1(), fullServerName, QString::isEmpty(), QString::lastIndexOf(), QString::mid(), PlatformSupportsAbstractNamespace, serverName, QStringConverterBase::Stateless, QStringConverter::System, and toUtf16.
Referenced by describeSocket().
Here is the call graph for this function:
Here is the caller graph for this function:| void QLocalSocketPrivate::setErrorAndEmit | ( | QLocalSocket::LocalSocketError | error, |
| const QString & | function | ||
| ) |
Definition at line 131 of file qlocalsocket_tcp.cpp.
References QLocalSocket::ConnectionError, QAbstractSocket::ConnectionRefusedError, QLocalSocket::ConnectionRefusedError, QAbstractSocket::DatagramTooLargeError, QLocalSocket::DatagramTooLargeError, emit, error, QIODevicePrivate::errorString, function, generateErrorString(), QAbstractSocket::HostNotFoundError, QAbstractSocket::NetworkError, QLocalSocket::PeerClosedError, QAbstractSocket::RemoteHostClosedError, QLocalSocket::ServerNotFoundError, QAbstractSocket::SocketAccessError, QLocalSocket::SocketAccessError, QAbstractSocket::SocketResourceError, QLocalSocket::SocketResourceError, QAbstractSocket::SocketTimeoutError, QLocalSocket::SocketTimeoutError, state, QAbstractSocket::UnconnectedState, QLocalSocket::UnconnectedState, QAbstractSocket::UnknownSocketError, QLocalSocket::UnknownSocketError, QAbstractSocket::UnsupportedSocketOperationError, and QLocalSocket::UnsupportedSocketOperationError.
Referenced by _q_connectToSocket().
Here is the call graph for this function:
Here is the caller graph for this function:| QString QLocalSocketPrivate::connectingName |
Definition at line 123 of file qlocalsocket_p.h.
Referenced by _q_connectToSocket().
| QIODevice::OpenMode QLocalSocketPrivate::connectingOpenMode |
Definition at line 125 of file qlocalsocket_p.h.
Referenced by _q_connectToSocket().
| int QLocalSocketPrivate::connectingSocket |
Definition at line 124 of file qlocalsocket_p.h.
Referenced by _q_connectToSocket().
| QTimer* QLocalSocketPrivate::connectTimer |
Definition at line 122 of file qlocalsocket_p.h.
Referenced by _q_connectToSocket(), and cancelDelayedConnect().
| QSocketNotifier* QLocalSocketPrivate::delayConnect |
Definition at line 121 of file qlocalsocket_p.h.
Referenced by _q_connectToSocket(), and cancelDelayedConnect().
| QString QLocalSocketPrivate::fullServerName |
Definition at line 129 of file qlocalsocket_p.h.
Referenced by _q_connectToSocket(), _q_stateChanged(), describeSocket(), and parseSockaddr().
| QString QLocalSocketPrivate::serverName |
Definition at line 128 of file qlocalsocket_p.h.
Referenced by _q_connectToSocket(), _q_stateChanged(), describeSocket(), and parseSockaddr().
| QLocalSocket::LocalSocketState QLocalSocketPrivate::state |
Definition at line 127 of file qlocalsocket_p.h.
Referenced by _q_stateChanged(), and setErrorAndEmit().
| QLocalUnixSocket QLocalSocketPrivate::unixSocket |
Definition at line 110 of file qlocalsocket_p.h.
Referenced by _q_connectToSocket().