KD SOAP API Documentation  2.1
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-2022 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>
16 class KDSoapServer;
17 
26 class KDSOAPSERVER_EXPORT KDSoapThreadPool : public QObject
27 {
28  Q_OBJECT
29 public:
33  explicit KDSoapThreadPool(QObject *parent = 0);
34 
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 
76 private:
77  friend class KDSoapServer;
78  void handleIncomingConnection(int socketDescriptor, KDSoapServer *server);
79  class Private;
80  Private *const d;
81 };
82 
83 #endif // KDSOAPTHREADPOOL_H
#define KDSOAPSERVER_EXPORT

© 2010-2022 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 Tue Jun 13 2023 12:18:34 for KD SOAP API Documentation by doxygen 1.9.1