Results 1 to 2 of 2

Thread: A network programing question: how to limit bandwidth of a TCP of UDP socket.

  1. #1
    Join Date
    Nov 2010
    Location
    iran/isfahan
    Posts
    13
    Thanks
    3
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Question A network programing question: how to limit bandwidth of a TCP of UDP socket.

    hello everybody
    In some programs (like download managers) you can set a maximum bandwidth for a specific network request. my question is how to apply this limitation on a TCP connection for example? does TCP or UDP protocols have such a functionality built in? or it must implement in application layer? if so, what is the usual way for doing it? is there any OS API or something in Qt framework for doing that? for example we have a number of large HTTP responses to download, and we want to be able to change upper bound of download speed for each of them during download.
    (one way that I'm thinking about it is to break the request into plenty of small requests with a short "byte-range", and after getting response of each request, we can calculate speed, and if needed, we can apply a delay for achieving specified bandwidth)

  2. #2
    Join Date
    Nov 2010
    Location
    iran/isfahan
    Posts
    13
    Thanks
    3
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: A network programing question: how to limit bandwidth of a TCP of UDP socket.

    sorry, last "of" in title was typo. it should be "or"

Similar Threads

  1. network client socket without using signals and slots
    By erqsor in forum Qt Programming
    Replies: 7
    Last Post: 24th March 2011, 10:28
  2. Help in Qt Socket Programing in Windows 7?
    By dedy2000 in forum Newbie
    Replies: 2
    Last Post: 7th December 2009, 05:50
  3. Network Socket Programming
    By Walsi in forum Newbie
    Replies: 4
    Last Post: 19th June 2007, 11:04
  4. question about socket and threads?
    By oob2 in forum Qt Programming
    Replies: 2
    Last Post: 27th February 2007, 12:42
  5. qt socket question
    By bluesguy82 in forum Qt Programming
    Replies: 4
    Last Post: 29th August 2006, 16:42

Tags for this Thread

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.