qt qwebsocket 连接wss://
if (m_url.indexOf("wss://") >= 0) { QSslConfiguration sslConfiguration = m_pWebSocket->sslConfiguration(); sslConfiguration.setPeerVerifyMode(QSslSocket::VerifyPeer); sslConfiguration.setProtocol(QSsl::TlsV1SslV3); m_pWebSocket->setSslConfiguration(sslConfiguration); }
还要安装openssl,并把openssl下libeay32.dll和ssleay32.dll放到qt bin目录下
本文来自博客园,作者:一夜梦想,转载请注明原文链接:https://www.cnblogs.com/caiyingyong/p/14871815.html