KD SOAP
2.0.0
source
src
KDSoapServer
KDSoapThreadPool.h
1
/****************************************************************************
2
**
3
** This file is part of the KD Soap library.
4
**
5
** SPDX-FileCopyrightText: 2010-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6
**
7
** SPDX-License-Identifier: LicenseRef-KDAB-KDSoap-AGPL3-Modified OR LicenseRef-KDAB-KDSoap OR LicenseRef-KDAB-KDSoap-US
8
**
9
** Licensees holding valid commercial KD Soap licenses may use this file in
10
** accordance with the KD Soap Commercial License Agreement provided with
11
** the Software.
12
**
13
** Contact info@kdab.com if any conditions of this licensing are not clear to you.
14
**
15
****************************************************************************/
16
#ifndef KDSOAPTHREADPOOL_H
17
#define KDSOAPTHREADPOOL_H
18
19
#include <QtCore/QObject>
20
#include <QtCore/QHash>
21
#include "KDSoapServerGlobal.h"
22
class
KDSoapServer
;
23
32
class
KDSOAPSERVER_EXPORT
KDSoapThreadPool
:
public
QObject
33
{
34
Q_OBJECT
35
public
:
39
explicit
KDSoapThreadPool
(
QObject
*parent = 0);
40
44
~
KDSoapThreadPool
();
45
52
void
setMaxThreadCount(
int
maxThreadCount);
53
57
int
maxThreadCount()
const
;
58
62
int
numConnectedSockets(
const
KDSoapServer
*server)
const
;
63
69
int
totalConnectionCount(
const
KDSoapServer
*server)
const
;
70
75
void
resetTotalConnectionCount(
const
KDSoapServer
*server);
76
80
void
disconnectSockets(
KDSoapServer
*server);
81
82
private
:
83
friend
class
KDSoapServer
;
84
void
handleIncomingConnection(
int
socketDescriptor,
KDSoapServer
*server);
85
class
Private;
86
Private *
const
d;
87
};
88
89
#endif // KDSOAPTHREADPOOL_H
KDSoapServer
Definition:
KDSoapServer.h:36
QObject
KDSoapThreadPool
Definition:
KDSoapThreadPool.h:33
© 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 Fri Jul 22 2022 15:57:43 for KD SOAP by doxygen 1.8.20