KD SOAP  1.10.0
KDSoapUdpClient_p.h
1 /****************************************************************************
2 **
3 ** This file is part of the KD Soap library.
4 **
5 ** SPDX-FileCopyrightText: 2019-2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only 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 
17 #ifndef KDSOAPUDPCLIENT_P_H
18 #define KDSOAPUDPCLIENT_P_H
19 
20 #include <QObject>
21 #include <QUdpSocket>
22 
23 #include "KDSoapUdpClient.h"
24 
25 class KDSoapUdpClientPrivate : public QObject
26 {
27  Q_OBJECT
28 public:
29  explicit KDSoapUdpClientPrivate(KDSoapUdpClient *q)
30  : q_ptr(q), socketIPv4(0), socketIPv6(0)
31  {}
32 
33  void receivedDatagram(const QByteArray &messageData, const QHostAddress &senderAddress, quint16 senderPort);
34 
35 public Q_SLOTS:
36  void readyRead();
37 
38 public:
39  QUdpSocket *socketIPv4;
40  QUdpSocket *socketIPv6;
41  KDSoap::SoapVersion soapVersion = KDSoap::SOAP1_2;
42 
43 private:
44  KDSoapUdpClient *const q_ptr;
45  Q_DECLARE_PUBLIC(KDSoapUdpClient)
46 };
47 
48 #endif // KDSOAPUDPCLIENT_P_H
KDSoapUdpClient provides an interface for implementing a SOAP-over-UDP client.
Definition: KDSoapUdpClient.h:75

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/