KD SOAP API Documentation: KDSoapThreadPool.h Source File

| KD SOAP API Documentation 2.2

Loading...
Searching...
No Matches
KDSoapThreadPool.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** This file is part of the KD Soap project.
4**
5** SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6**
7** SPDX-License-Identifier: MIT
8**
9****************************************************************************/
10#ifndef KDSOAPTHREADPOOL_H
11#define KDSOAPTHREADPOOL_H
12
13#include "KDSoapServerGlobal.h"
14#include <QtCore/QHash>
15#include <QtCore/QObject>
16class KDSoapServer;
17
26 class KDSOAPSERVER_EXPORT KDSoapThreadPool : public QObject
27{
28 Q_OBJECT
29public:
33 explicit KDSoapThreadPool(QObject *parent = 0);
34
38 ~KDSoapThreadPool();
39
46 void setMaxThreadCount(int maxThreadCount);
47
51 int maxThreadCount() const;
52
56 int numConnectedSockets(const KDSoapServer *server) const;
57
63 int totalConnectionCount(const KDSoapServer *server) const;
64
69 void resetTotalConnectionCount(const KDSoapServer *server);
70
74 void disconnectSockets(KDSoapServer *server);
75
76private:
77 friend class KDSoapServer;
78 void handleIncomingConnection(int socketDescriptor, KDSoapServer *server);
79 class Private;
80 Private *const d;
81};
82
83#endif // KDSOAPTHREADPOOL_H
KDSoapServerGlobal.h
KDSOAPSERVER_EXPORT
#define KDSOAPSERVER_EXPORT
Definition KDSoapServerGlobal.h:22
KDSoapServer
Definition KDSoapServer.h:30
KDSoapThreadPool
Definition KDSoapThreadPool.h:27
QObject

© 2010-2024 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-soap/
Generated on Sun Jan 7 2024 11:47:36 for KD SOAP API Documentation by doxygen 1.9.8