本页内容

Qt WebSockets C++ Classes

支持基于 WebSocket 的通信的 C++ 类列表。更多内容...

命名空间

QWebSocketProtocol

包含与 WebSocket 标准相关的常量

类

QMaskGenerator

用于自定义 32 位掩码生成器的抽象基类

QWebSocket

实现了一个支持 WebSocket 协议的 TCP 套接字

QWebSocketCorsAuthenticator

用于跨源请求(CORS)的身份验证器对象

QWebSocketHandshakeOptions

用于收集 WebSocket 握手选项

QWebSocketServer

实现基于WebSocket的服务器

详细说明

要在您的应用程序中使用这些类,请使用以下包含语句:

#include <QtWebSockets/QtWebSockets>

要链接该模块,请在您的qmake`.pro ` 文件中添加以下行:

QT += websockets

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