Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
15
16class Q_NETWORK_EXPORT QSctpSocket : public QTcpSocket
17{
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
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
45
46#endif // QSCTPSOCKET_H
The QNetworkDatagram class provides the data and metadata of a UDP datagram.
\inmodule QtCore
Definition qobject.h:103
The QSctpSocket class provides an SCTP socket.
Definition qsctpsocket.h:17
The QTcpSocket class provides a TCP socket.
Definition qtcpsocket.h:18
Combined button and popup list for selecting options.
GLenum GLenum GLsizei count
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define Q_OBJECT
long long qint64
Definition qtypes.h:60
QByteArray readData()
udpSocket writeDatagram(std::move(datagram).makeReply(replyData))
[0]
socket disconnectFromHost()
[0]
serverSocket readDatagram(clientHello.data(), clientHello.size(), &address, &port)