Results 1 to 4 of 4

Thread: Reimplement QTcpSocket to limit download speed ???

  1. #1
    Join Date
    Mar 2007
    Location
    Ukraine, Odessa
    Posts
    140
    Thanks
    15
    Thanked 11 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Reimplement QTcpSocket to limit download speed ???

    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
    C++ & AMD forever

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Reimplement QTcpSocket to limit download speed ???

    J-P Nurmi

  3. #3
    Join Date
    Mar 2007
    Location
    Ukraine, Odessa
    Posts
    140
    Thanks
    15
    Thanked 11 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Reimplement QTcpSocket to limit download speed ???

    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
    C++ & AMD forever

  4. #4
    Join Date
    Nov 2010
    Posts
    47
    Thanks
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

Similar Threads

  1. How to limit download speed with QHttp ?
    By THRESHE in forum Qt Programming
    Replies: 6
    Last Post: 25th November 2010, 11:55

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.