Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsctpsocket_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 Alex Trotsenko <alex1973tr@gmail.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QSCTPSOCKET_P_H
6#define QSCTPSOCKET_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of the QLibrary class. This header file may change from
14// version to version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtNetwork/qsctpsocket.h>
20#include <private/qtcpsocket_p.h>
21#include <QtCore/qbytearray.h>
22#include <QtCore/qlist.h>
23#include <private/qnetworkdatagram_p.h>
24
25#include <deque>
26
27QT_BEGIN_NAMESPACE
28
29#ifndef QT_NO_SCTP
30
31class QSctpSocketPrivate : public QTcpSocketPrivate
32{
33 Q_DECLARE_PUBLIC(QSctpSocket)
34public:
35 QSctpSocketPrivate();
36 virtual ~QSctpSocketPrivate();
37
38 bool canReadNotification() override;
39 bool writeToSocket() override;
40
41 QByteArray incomingDatagram;
42 int maximumChannelCount;
43
44 typedef std::deque<QIpPacketHeader> IpHeaderList;
45 QList<IpHeaderList> readHeaders;
46 QList<IpHeaderList> writeHeaders;
47
48 void configureCreatedSocket() override;
49};
50
51#endif // QT_NO_SCTP
52
53QT_END_NAMESPACE
54
55#endif // QSCTPSOCKET_P_H