feat: connection thread

This commit is contained in:
semenov
2024-08-20 09:13:31 +03:00
parent ea18836923
commit fa79d72b6c
6 changed files with 13 additions and 11 deletions

View File

@@ -22,9 +22,9 @@ void TCPClient::SetConnect(ServerSettings *serverSettings)
{
socket = new QTcpSocket(this);
connect(socket,&QTcpSocket::readyRead,this,&TCPClient::onReadyRead);
connect(socket,&QTcpSocket::readyRead,this,&TCPClient::onReadyRead,Qt::DirectConnection);
connect(socket,&QTcpSocket::disconnected,this,&TCPClient::SetDisconnect);
connect(this,&TCPClient::Recognize,recognizeSystem,&RecognizeSystem::Recognize);
connect(this,&TCPClient::Recognize,recognizeSystem,&RecognizeSystem::Recognize,Qt::DirectConnection);
socket->connectToHost(serverSettings->Address,serverSettings->Port.toShort());
emit onSendDebugLog("Try connect...");