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();
421QLocalSocket *QLocalServer::nextPendingConnection()
424 if (d->pendingConnections.isEmpty())
426 QLocalSocket *nextSocket = d->pendingConnections.dequeue();
427#ifndef QT_LOCALSOCKET_TCP
428 if (d->pendingConnections.size() <= d->maxPendingConnections)
430 d->socketNotifier->setEnabled(
true);
432 d->connectionEventNotifier->setEnabled(
true);