wirasto
28th June 2010, 13:01
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
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
Thank's before..
I tried like this but still not working.
qDebug() << myTcpSocket->size(); //result 3229696
myTcpSocket->reset();
qDebug() << myTcpSocket->size(); //result 3229696
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
Thank's before..