191qintptr QLocalServer::socketDescriptor()
const
193 Q_D(
const QLocalServer);
196#if defined(QT_LOCALSOCKET_TCP)
197 return d->tcpServer.socketDescriptor();
198#elif defined(Q_OS_WIN)
199 const auto handle = d->connectionEventNotifier->handle();
200 return handle ? qintptr(handle) : -1;
202 return d->socketNotifier->socket();
419QLocalSocket *QLocalServer::nextPendingConnection()
422 if (d->pendingConnections.isEmpty())
424 QLocalSocket *nextSocket = d->pendingConnections.dequeue();
425#ifndef QT_LOCALSOCKET_TCP
426 if (d->pendingConnections.size() <= d->maxPendingConnections)
428 d->socketNotifier->setEnabled(
true);
430 d->connectionEventNotifier->setEnabled(
true);