Редактирование: Implementing TCP Traffic Control
Материал из Wiki.crossplatform.ru
Внимание: Вы не представились системе. Ваш IP-адрес будет записан в историю изменений этой страницы.
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.
Текущая версия | Ваш текст | ||
Строка 1: | Строка 1: | ||
- | + | [[Категория:Qt_Издания]] | |
+ | __NOTOC__ | ||
+ | |||
{| border="0" cellspacing="0" cellpadding="10" width="100%" | {| border="0" cellspacing="0" cellpadding="10" width="100%" | ||
Строка 5: | Строка 7: | ||
|'''by Andreas Aardal Hanssen''' | |'''by Andreas Aardal Hanssen''' | ||
|}<blockquote>'''TCP traffic control (also known as "rate control" or "trafficthrottling") is about managing the network bandwidth available toyour application. This means limiting the number of concurrentconnections and the upload and download rates for eachconnection.''' | |}<blockquote>'''TCP traffic control (also known as "rate control" or "trafficthrottling") is about managing the network bandwidth available toyour application. This means limiting the number of concurrentconnections and the upload and download rates for eachconnection.''' | ||
- | + | *[[#whoneedstrafficcontrolanyway | Who Needs Traffic Control Anyway?]] | |
+ | *[[#implementingtheratecontroller | Implementing the Rate Controller]] | ||
+ | *[[#implementingtheratecontrolledsocket | Implementing the Rate-Controlled Socket]] | ||
</blockquote> | </blockquote> | ||
In this article, we will show how you can implement your ownrate-controlled socket by subclassing [[Qt:Документация_4.3.2/qtcpsocket | QTcpSocket]]. Ourimplementation is a simplified version of the traffic controller fromQt 4.1's Torrent example (located in <tt>examples/network/torrent</tt>). | In this article, we will show how you can implement your ownrate-controlled socket by subclassing [[Qt:Документация_4.3.2/qtcpsocket | QTcpSocket]]. Ourimplementation is a simplified version of the traffic controller fromQt 4.1's Torrent example (located in <tt>examples/network/torrent</tt>). |