PDA

View Full Version : Reimplement QTcpSocket to limit download speed ???



THRESHE
23rd February 2008, 14:39
Hello everyone
I'm tying to implement socket so it could limit download speed but now I'm stuck.
I suppose the best way to do it is by reimplementing sockets readData function but how to measure should I read from socket or just return -1 :confused:

jpn
23rd February 2008, 14:41
See Implementing TCP Traffic Control (http://doc.trolltech.com/qq/qq17-ratecontrol.html).

THRESHE
23rd February 2008, 15:00
I've read this article long ago. But when I've tried to use those classes in my app or just to run example it resulted in half of the CPU load and constant memory growth :( So now I'm trying to do it myself

AlekseyK
29th November 2010, 14:30
Continue:
http://www.qtcentre.org/threads/10208-How-to-limit-download-speed-with-QHttp?p=167314#post167314
http://www.qtcentre.org/threads/29904-HTTP-pause-download-in-QTCreator?p=167824#post167824