mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
- Support per-peer rate limiting
This commit is contained in:
parent
bf6d7534d5
commit
47fc4679d4
6 changed files with 88 additions and 3 deletions
|
@ -508,6 +508,16 @@ void QTorrentHandle::connect_peer(asio::ip::tcp::endpoint const& adr, int source
|
|||
h.connect_peer(adr, source);
|
||||
}
|
||||
|
||||
void QTorrentHandle::set_peer_upload_limit(asio::ip::tcp::endpoint ip, int limit) const {
|
||||
Q_ASSERT(h.is_valid());
|
||||
h.set_peer_upload_limit(ip, limit);
|
||||
}
|
||||
|
||||
void QTorrentHandle::set_peer_download_limit(asio::ip::tcp::endpoint ip, int limit) const {
|
||||
Q_ASSERT(h.is_valid());
|
||||
h.set_peer_download_limit(ip, limit);
|
||||
}
|
||||
|
||||
//
|
||||
// Operators
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue