QWebSocketHandshakeOptions Class

웹소켓 핸드셰이크에 대한 옵션을 수집합니다. 더 보기...

헤더: #include <QWebSocketHandshakeOptions>
CMake: find_package(Qt6 REQUIRED COMPONENTS WebSockets)
target_link_libraries(mytarget PRIVATE Qt6::WebSockets)
qmake: QT += websockets
이후: Qt 6.4

공용 함수

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)

자세한 설명

QWebSocketHandshakeOptions는 웹 소켓 서브 프로토콜과 웹 소켓 확장과 같이 웹 소켓 핸드 셰이크에 전달되는 옵션을 수집합니다.

현재는 WebSocket 하위 프로토콜만 지원됩니다.

QWebSocket::open()도 참조하세요 .

멤버 함수 문서

QWebSocketHandshakeOptions::QWebSocketHandshakeOptions()

빈 QWebSocketHandshakeOptions 객체를 생성합니다.

QWebSocketHandshakeOptions::QWebSocketHandshakeOptions(const QWebSocketHandshakeOptions &other)

other 의 복사본인 QWebSocketHandshakeOptions 을 생성합니다.

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

other 에서 이동한 QWebSocketHandshakeOptions 을 구축합니다.

[noexcept] QWebSocketHandshakeOptions::~QWebSocketHandshakeOptions()

이 개체를 파괴합니다.

void QWebSocketHandshakeOptions::setSubprotocols(const QStringList &protocols)

웹소켓 핸드셰이크와 함께 전송할 웹소켓 서브프로토콜 protocols 목록을 설정합니다.

웹소켓 하위 프로토콜 이름은 예약되지 않은 그룹에 속하는 US-ASCII 문자로만 구성할 수 있습니다. 잘못된 프로토콜 이름은 핸드셰이크에 포함되지 않습니다.

subprotocols()도 참조하세요 .

QStringList QWebSocketHandshakeOptions::subprotocols() const

웹소켓 핸드셰이크와 함께 전송할 웹소켓 서브프로토콜 목록을 반환합니다.

setSubprotocols()도 참조하세요 .

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

other 를 이 개체로 이동합니다.

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

이 개체에 other 을 할당합니다.

관련 비회원

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

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

lhsrhs 을 비교하여 동등성을 확인합니다.

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