Can I clear data on tcpSocket without read it ?
I tried like this but still not working.
qDebug() << myTcpSocket->size(); //result 3229696
myTcpSocket->reset();
qDebug() << myTcpSocket->size(); //result 3229696
qDebug() << myTcpSocket->size(); //result 3229696
myTcpSocket->reset();
qDebug() << myTcpSocket->size(); //result 3229696
To copy to clipboard, switch view to plain text mode
If like this, is working. But, make a delay if data size is big.
qDebug() << myTcpSocket->size(); //result 3229696
myTcpSocket->readAll();
qDebug() << myTcpSocket->size(); //result 0
qDebug() << myTcpSocket->size(); //result 3229696
myTcpSocket->readAll();
qDebug() << myTcpSocket->size(); //result 0
To copy to clipboard, switch view to plain text mode
Thank's before..
Bookmarks