mirror of https://github.com/nymea/nymea.git
Merge PR #448: Fix TCP server internal signal connection
commit
633bd3bfc6
|
|
@ -214,7 +214,7 @@ void SslServer::incomingConnection(qintptr socketDescriptor)
|
||||||
|
|
||||||
qCDebug(dcTcpServer()) << "New client socket connection:" << sslSocket;
|
qCDebug(dcTcpServer()) << "New client socket connection:" << sslSocket;
|
||||||
|
|
||||||
connect(sslSocket, &QSslSocket::encrypted, [this, sslSocket](){ emit clientConnected(sslSocket); });
|
connect(sslSocket, &QSslSocket::encrypted, this, [this, sslSocket](){ emit clientConnected(sslSocket); });
|
||||||
connect(sslSocket, &QSslSocket::readyRead, this, &SslServer::onSocketReadyRead);
|
connect(sslSocket, &QSslSocket::readyRead, this, &SslServer::onSocketReadyRead);
|
||||||
connect(sslSocket, &QSslSocket::disconnected, this, &SslServer::onClientDisconnected);
|
connect(sslSocket, &QSslSocket::disconnected, this, &SslServer::onClientDisconnected);
|
||||||
typedef void (QSslSocket:: *sslErrorsSignal)(const QList<QSslError> &);
|
typedef void (QSslSocket:: *sslErrorsSignal)(const QList<QSslError> &);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue