192qintptr QLocalServer::socketDescriptor()
const
194 Q_D(
const QLocalServer);
197#if defined(QT_LOCALSOCKET_TCP)
198 return d->tcpServer.socketDescriptor();
199#elif defined(Q_OS_WIN)
200 const auto handle = d->connectionEventNotifier->handle();
201 return handle ? qintptr(handle) : -1;
203 return d->socketNotifier->socket();
420QLocalSocket *QLocalServer::nextPendingConnection()
423 if (d->pendingConnections.isEmpty())
425 QLocalSocket *nextSocket = d->pendingConnections.dequeue();
426#ifndef QT_LOCALSOCKET_TCP
427 if (d->pendingConnections.size() <= d->maxPendingConnections)
429 d->socketNotifier->setEnabled(
true);
431 d->connectionEventNotifier->setEnabled(
true);