QWebSocketHandshakeOptions Class
Sammelt Optionen für den WebSocket-Handshake. Mehr...
Header: | #include <QWebSocketHandshakeOptions> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WebSockets) target_link_libraries(mytarget PRIVATE Qt6::WebSockets) |
qmake: | QT += websockets |
Seit: | Qt 6.4 |
Öffentliche Funktionen
QWebSocketHandshakeOptions() | |
QWebSocketHandshakeOptions(const QWebSocketHandshakeOptions &other) | |
QWebSocketHandshakeOptions(QWebSocketHandshakeOptions &&other) | |
~QWebSocketHandshakeOptions() | |
void | setSubprotocols(const QStringList &protocols) |
QStringList | subprotocols() const |
QWebSocketHandshakeOptions & | operator=(QWebSocketHandshakeOptions &&other) |
QWebSocketHandshakeOptions & | operator=(const QWebSocketHandshakeOptions &other) |
Verwandte Nicht-Mitglieder
bool | operator!=(const QWebSocketHandshakeOptions &lhs, const QWebSocketHandshakeOptions &rhs) |
bool | operator==(const QWebSocketHandshakeOptions &lhs, const QWebSocketHandshakeOptions &rhs) |
Detaillierte Beschreibung
QWebSocketHandshakeOptions sammelt Optionen, die an den WebSocket-Handshake weitergegeben werden, wie z.B. WebSocket-Subprotokolle und WebSocket-Erweiterungen.
Momentan werden nur WebSocket-Subprotokolle unterstützt.
Siehe auch QWebSocket::open().
Dokumentation der Mitgliedsfunktionen
QWebSocketHandshakeOptions::QWebSocketHandshakeOptions()
Konstruiert ein leeres QWebSocketHandshakeOptions-Objekt.
QWebSocketHandshakeOptions::QWebSocketHandshakeOptions(const QWebSocketHandshakeOptions &other)
Konstruiert ein QWebSocketHandshakeOptions, das eine Kopie von other ist.
[noexcept]
QWebSocketHandshakeOptions::QWebSocketHandshakeOptions(QWebSocketHandshakeOptions &&other)
Konstruiert ein QWebSocketHandshakeOptions, das von other verschoben wird.
[noexcept]
QWebSocketHandshakeOptions::~QWebSocketHandshakeOptions()
Zerstört dieses Objekt.
void QWebSocketHandshakeOptions::setSubprotocols(const QStringList &protocols)
Legt die Liste der WebSocket-Subprotokolle protocols fest, die zusammen mit dem Websocket-Handshake gesendet werden.
WebSocket-Subprotokollnamen dürfen nur aus den US-ASCII-Zeichen bestehen, die in der nicht reservierten Gruppe enthalten sind. Ungültige Protokollnamen werden nicht in den Handshake aufgenommen.
Siehe auch subprotocols().
QStringList QWebSocketHandshakeOptions::subprotocols() const
Gibt die Liste der WebSocket-Unterprotokolle zurück, die zusammen mit dem Websocket-Handshake gesendet werden sollen.
Siehe auch setSubprotocols().
[noexcept]
QWebSocketHandshakeOptions &QWebSocketHandshakeOptions::operator=(QWebSocketHandshakeOptions &&other)
Verschiebt other zu diesem Objekt.
QWebSocketHandshakeOptions &QWebSocketHandshakeOptions::operator=(const QWebSocketHandshakeOptions &other)
Weist diesem Objekt other zu.
Verwandte Nicht-Mitglieder
bool operator!=(const QWebSocketHandshakeOptions &lhs, const QWebSocketHandshakeOptions &rhs)
bool operator==(const QWebSocketHandshakeOptions &lhs, const QWebSocketHandshakeOptions &rhs)
Vergleicht lhs auf Gleichheit mit rhs.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.