![]() |
Qt 6.x
The Qt SDK
|
#include <qlocalserver_p.h>
Static Public Member Functions | |
static bool | removeServer (const QString &name) |
![]() | |
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 | |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Definition at line 39 of file qlocalserver_p.h.
|
inline |
Definition at line 44 of file qlocalserver_p.h.
void QLocalServerPrivate::_q_onNewConnection | ( | ) |
We have received a notification that we can read on the listen socket. Accept the new socket.
Definition at line 70 of file qlocalserver_tcp.cpp.
References qWarning, QObject::setParent(), and QAbstractSocket::socketDescriptor().
Referenced by init().
void QLocalServerPrivate::closeServer | ( | ) |
Definition at line 52 of file qlocalserver_tcp.cpp.
References fullServerName, QSettings::remove(), settings, and QSettings::setValue().
void QLocalServerPrivate::init | ( | ) |
Definition at line 17 of file qlocalserver_tcp.cpp.
References _q_onNewConnection(), SIGNAL, and SLOT.
bool QLocalServerPrivate::listen | ( | const QString & | name | ) |
Definition at line 23 of file qlocalserver_tcp.cpp.
References QSettings::contains(), fullServerName, listenBacklog, QHostAddress::LocalHost, qWarning, settings, QSettings::setValue(), and QString::startsWith().
bool QLocalServerPrivate::listen | ( | qintptr | socketDescriptor | ) |
Definition at line 47 of file qlocalserver_tcp.cpp.
|
static |
Definition at line 84 of file qlocalserver_tcp.cpp.
References QSettings::contains(), QSettings::remove(), serverName, and settings.
Referenced by QLocalServer::removeServer().
Definition at line 305 of file qlocalserver_unix.cpp.
References QAbstractSocket::AddressInUseError, QString::arg(), error, errorString, fullServerName, function, QAbstractSocket::HostNotFoundError, qWarning, QAbstractSocket::SocketAccessError, and QAbstractSocket::UnknownSocketError.
void QLocalServerPrivate::waitForNewConnection | ( | int | msec, |
bool * | timedOut | ||
) |
Definition at line 62 of file qlocalserver_tcp.cpp.
References QList< T >::isEmpty(), and pendingConnections.
QAbstractSocket::SocketError QLocalServerPrivate::error |
Definition at line 93 of file qlocalserver_p.h.
Referenced by setError().
QString QLocalServerPrivate::errorString |
Definition at line 92 of file qlocalserver_p.h.
Referenced by setError().
QString QLocalServerPrivate::fullServerName |
Definition at line 89 of file qlocalserver_p.h.
Referenced by closeServer(), listen(), and setError().
int QLocalServerPrivate::listenBacklog = 50 |
Definition at line 94 of file qlocalserver_p.h.
Referenced by listen().
int QLocalServerPrivate::listenSocket |
Definition at line 84 of file qlocalserver_p.h.
int QLocalServerPrivate::maxPendingConnections |
Definition at line 90 of file qlocalserver_p.h.
QQueue<QLocalSocket*> QLocalServerPrivate::pendingConnections |
Definition at line 91 of file qlocalserver_p.h.
Referenced by waitForNewConnection().
QString QLocalServerPrivate::serverName |
Definition at line 88 of file qlocalserver_p.h.
Referenced by removeServer().
QSocketNotifier* QLocalServerPrivate::socketNotifier |
Definition at line 85 of file qlocalserver_p.h.