资源简介
QWebSocket 添加 SLL 加密的 Demo,支持单向认证和双向认证,支持windows和linux双平台。
代码片段和文件信息
/****************************************************************************
**
** Copyright (C) 2016 Kurt Pattyn .
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtWebSockets module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or alternatively in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** BSD License Usage
** Alternatively you may use this file under the terms of the BSD license
** as follows:
**
** “Redistribution and use in source and binary forms with or without
** modification are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of The Qt Company Ltd nor the names of its
** contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** “AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
** LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
** SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT
** LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE
** DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.“
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include
#include “sslechoclient.h“
int main(int argc char *argv[])
{
QCoreApplication a(argc argv);
SslEchoClient client(QUrl(QStringLiteral(“wss://localhost:1234“)));
Q_UNUSED(client);
return a.exec();
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2796 2019-06-13 15:07 sslechoclient\main.cpp
文件 4171 2019-06-13 15:33 sslechoclient\sslechoclient.cpp
文件 3159 2019-06-12 16:37 sslechoclient\sslechoclient.h
文件 284 2018-11-08 00:00 sslechoclient\sslechoclient.pro
文件 2390960 2019-05-08 17:13 sslechoserver\libeay32.dll
文件 1112 2018-11-08 00:00 sslechoserver\localhost.cert
文件 1702 2018-11-08 00:00 sslechoserver\localhost.key
文件 2756 2018-11-08 00:00 sslechoserver\main.cpp
文件 214 2019-06-13 15:13 sslechoserver\securesocketclient.qrc
文件 1166 2019-06-13 15:32 sslechoserver\server.cert
文件 992 2019-06-13 15:31 sslechoserver\server.csr
文件 1702 2019-06-13 15:31 sslechoserver\server.key
文件 381872 2019-05-08 17:13 sslechoserver\ssleay32.dll
文件 3846 2019-06-12 17:27 sslechoserver\sslechoclient.html
文件 5986 2019-06-13 15:13 sslechoserver\sslechoserver.cpp
文件 3307 2018-11-08 00:00 sslechoserver\sslechoserver.h
文件 362 2018-11-08 00:00 sslechoserver\sslechoserver.pro
文件 303 2018-11-08 00:00 websockets.pro
目录 0 2019-06-27 18:23 sslechoclient
目录 0 2019-06-27 18:23 sslechoserver
----------- --------- ---------- ----- ----
2806690 20
相关资源
- Ubuntu下操作Excel,qt代码
- Qt图片浏览器 --基于Qt的Graphics View f
- qtnribbon2破解
- Qt软件开发 完整项目代码
- MQTT_3.1protocol_Specific中文版
- 在QT中使用RTP进行视频的采集和传输
- 易语言GDI三角板源码
- Mini6410 Qt4和Qtopia编程开发指南
- Qt实现Code39条形码
- qt_ffmpeg_mp4_export_and_import.zip
- QT5.5入门与项目实战
- Huffman Compress 霍夫曼编码 压缩 解压缩
- 基于QT的黑白棋游戏设计和实现
- Qt写的连连看小游戏
- QTranslate_6.7.2.7z
- Qt基于FFmpeg播放本地 H.264H264文件
- QT编的MP3播放器
- linux系统的二级文件系统(QT实现了简
- QT生成DLL库文件的方法和使用方法详解
- QT+opencv+OCR 身份证号码,银行卡号识别
- Qt实现的简单的中国象棋程序
- Qt时钟Demo,在原来基础上添加了秒针
- 基于Qt和opencv的身份证号码识别系统
- 基于FFmpeg4.0.2的AAC编码器
- Qt写的Windows下屏幕录制程序源码
- QT旅游攻略软件程序源代码
- mp4_play.zip
- ffmpeg+qt的简单播放器
- MyPeppa_Release_V1.0.rar
- 国密文档合集大部分GMT系列
评论
共有 条评论