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.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
4#ifndef QSCTPSOCKET_H
5#define QSCTPSOCKET_H
6
7#include <QtNetwork/qtcpsocket.h>
8#include <QtNetwork/qnetworkdatagram.h>
9
11
12#if !defined(QT_NO_SCTP) || defined(Q_QDOC)
13
14class QSctpSocketPrivate;
15
16class Q_NETWORK_EXPORT QSctpSocket : public QTcpSocket
17{
18 Q_OBJECT
19public:
20 explicit QSctpSocket(QObject *parent = nullptr);
21 virtual ~QSctpSocket();
22
23 void close() override;
24 void disconnectFromHost() override;
25
26 void setMaximumChannelCount(int count);
27 int maximumChannelCount() const;
28 bool isInDatagramMode() const;
29
30 QNetworkDatagram readDatagram();
31 bool writeDatagram(const QNetworkDatagram &datagram);
32
33protected:
34 qint64 readData(char *data, qint64 maxlen) override;
35 qint64 readLineData(char *data, qint64 maxlen) override;
36
37private:
38 Q_DISABLE_COPY(QSctpSocket)
39 Q_DECLARE_PRIVATE(QSctpSocket)
40};
41
42#endif // QT_NO_SCTP
43
44QT_END_NAMESPACE
45
46#endif // QSCTPSOCKET_H
virtual ~QSctpServerPrivate()
void configureCreatedSocket() override
The QSctpSocket class provides an SCTP socket.
Definition qsctpsocket.h:17
Combined button and popup list for selecting options.