Skip to content

Commit

Permalink
trans startedEncryptionHandshake signal to class:qwebsocketserver
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoCcWang committed Mar 29, 2024
1 parent 4a67d49 commit 9ce9789
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/websockets/qwebsocketserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ class Q_WEBSOCKETS_EXPORT QWebSocketServer : public QObject
void sslErrors(const QList<QSslError> &errors);
void preSharedKeyAuthenticationRequired(QSslPreSharedKeyAuthenticator *authenticator);
#endif
void preStartedEncryptionHandshake(QSslSocket *pTcpSocket);
void closed();
};

Expand Down
2 changes: 2 additions & 0 deletions src/websockets/qwebsocketserver_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ void QWebSocketServerPrivate::init()
Qt::QueuedConnection);
QObjectPrivate::connect(pSslServer, &QSslServer::startedEncryptionHandshake,
this, &QWebSocketServerPrivate::startHandshakeTimeout);
QObject::connect(pSslServer, &QSslServer::startedEncryptionHandshake,
q, &QWebSocketServer::preStartedEncryptionHandshake);
QObject::connect(pSslServer, &QSslServer::peerVerifyError,
q, &QWebSocketServer::peerVerifyError);
QObject::connect(pSslServer, &QSslServer::sslErrors,
Expand Down

0 comments on commit 9ce9789

Please sign in to comment.