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
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
6
7socket->setMaxChannelCount(16);
9
11 int inputChannels = socket->readChannelCount();
12 int outputChannels = socket->writeChannelCount();
13
14 ....
15}
virtual bool waitForConnected(int msecs=30000)
Waits until the socket is connected, up to msecs milliseconds.
virtual void connectToHost(const QString &hostName, quint16 port, OpenMode mode=ReadWrite, NetworkLayerProtocol protocol=AnyIPProtocol)
Attempts to make a connection to hostName on the given port.
int writeChannelCount() const
int readChannelCount() const
The QSctpSocket class provides an SCTP socket.
Definition qsctpsocket.h:17
QSctpSocket * socket
[0]