In questa pagina

QWebSocketHandshakeOptions Class

Raccoglie le opzioni relative alla procedura di handshake di WebSocket. Altro...

Intestazione: #include <QWebSocketHandshakeOptions>
CMake: find_package(Qt6 REQUIRED COMPONENTS WebSockets)
target_link_libraries(mytarget PRIVATE Qt6::WebSockets)
qmake: QT += websockets
A partire da: Qt 6.4

Funzioni pubbliche

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)
bool operator!=(const QWebSocketHandshakeOptions &lhs, const QWebSocketHandshakeOptions &rhs)
bool operator==(const QWebSocketHandshakeOptions &lhs, const QWebSocketHandshakeOptions &rhs)

Descrizione dettagliata

QWebSocketHandshakeOptions raccoglie le opzioni che vengono passate all'handshake WebSocket, come i sottoprotocolli WebSocket e le estensioni WebSocket.

Al momento sono supportati solo i sottoprotocolli WebSocket.

Vedi anche ` QWebSocket::open()`.

Documentazione delle funzioni membro

QWebSocketHandshakeOptions::QWebSocketHandshakeOptions()

Crea un oggetto QWebSocketHandshakeOptions vuoto.

QWebSocketHandshakeOptions::QWebSocketHandshakeOptions(const QWebSocketHandshakeOptions &other)

Crea un oggetto `QWebSocketHandshakeOptions` che è una copia di ` other`.

[constexpr noexcept default] QWebSocketHandshakeOptions::QWebSocketHandshakeOptions(QWebSocketHandshakeOptions &&other)

Crea un oggetto `QWebSocketHandshakeOptions` che viene trasferito da ` other`.

[noexcept] QWebSocketHandshakeOptions::~QWebSocketHandshakeOptions()

Elimina questo oggetto.

void QWebSocketHandshakeOptions::setSubprotocols(const QStringList &protocols)

Imposta l'elenco dei sottoprotocolli WebSocket protocols da inviare insieme alla procedura di handshake WebSocket.

I nomi dei sottoprotocolli WebSocket possono essere composti esclusivamente da caratteri US-ASCII appartenenti al gruppo non riservato. I nomi di protocollo non validi non saranno inclusi nell'handshake.

Vedi anche subprotocols().

QStringList QWebSocketHandshakeOptions::subprotocols() const

Restituisce l'elenco dei sottoprotocolli WebSocket da inviare insieme alla procedura di handshake WebSocket.

Vedi anche setSubprotocols().

[noexcept] QWebSocketHandshakeOptions &QWebSocketHandshakeOptions::operator=(QWebSocketHandshakeOptions &&other)

Sposta " other " su questo oggetto.

QWebSocketHandshakeOptions &QWebSocketHandshakeOptions::operator=(const QWebSocketHandshakeOptions &other)

Assegna " other " a questo oggetto.

Non membri correlati

bool operator!=(const QWebSocketHandshakeOptions &lhs, const QWebSocketHandshakeOptions &rhs)

bool operator==(const QWebSocketHandshakeOptions &lhs, const QWebSocketHandshakeOptions &rhs)

Confronta lhs con rhs per verificare se sono uguali.

© 2026 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.