Monday, 12 August 2013

Blocking socket - waitForReadyRead()

Blocking socket - waitForReadyRead()

Currently in my QT code I have something like this:
QByteArray tick_stream;
clntSocket->waitForReadyRead();
tick_stream = clntSocket->read(800);
In the documentation it states
This function blocks until new data is available for reading and the
readyRead() signal has been emitted. The function will timeout after msecs
milliseconds; the default timeout is 30000 milliseconds
Is there any way I can make waitForReadyRead wait till infinity in my
blocking applicaton

No comments:

Post a Comment