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)
Bookmarks