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
src_network_socket_qsctpsocket.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 Alex Trotsenko <alex1973tr@gmail.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4//! [0]
5QSctpSocket *socket = new QSctpSocket(this);
6
7socket->setMaxChannelCount(16);
8socket->connectToHost(QHostAddress::LocalHost, 1973);
9
10if (socket->waitForConnected(1000)) {
11 int inputChannels = socket->readChannelCount();
12 int outputChannels = socket->writeChannelCount();
13
14 ....
15}
16//! [0]
QSctpSocket * socket
[0]