I have the following function:
void Rsh::receiveMessage() {
if( !tcpSocket->canReadLine() )
{
return;
}
while( tcpSocket->canReadLine() ){
responseLine = tcpSocket->readLine();
response.append(responseLine);
}
ui.ResultsTextEdit->append(tr("%1").arg(response));
}
void Rsh::receiveMessage() {
QString responseLine;
QString response;
QTextStream in(tcpSocket);
if( !tcpSocket->canReadLine() )
{
return;
}
while( tcpSocket->canReadLine() ){
responseLine = tcpSocket->readLine();
response.append(responseLine);
}
ui.ResultsTextEdit->append(tr("%1").arg(response));
}
To copy to clipboard, switch view to plain text mode
This works to pull data from the connection, however the first complete line of text is always missing...
any ideas?
Bookmarks