[Qt-interest] QNetworkReply setWriteBufferSize?
Thiago Macieira
thiago at kde.org
Tue Sep 29 21:10:38 CEST 2009
Em Terça-feira 29. Setembro 2009, às 16.08.45, Info escreveu:
> Hi,
>
> I've been reading the documentation for QNetworkReply and I see there
> is a setReadBufferSize which can be used to throttle downloads. Is
> there an equivalent setWriteBufferSize to throttle uploads or will
> this require creating a QIODevice derived object to handle the
> throttling?
If you want to throttle the upload, just write slower to the device. Use the
bytesWritten signal to be notified of when you can write more data.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
Qt Developer Days 2009 | Registration Now Open!
Munich, Germany: Oct 12 - 14 San Francisco, California: Nov 2 - 4
http://qt.nokia.com/qtdevdays2009
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090929/4b162283/attachment.bin
More information about the Qt-interest-old
mailing list