- FEATURE: Added an option to set the max number of connections per torrent

- FEATURE: Added an option to set the max number of uploads per torrent
This commit is contained in:
Christophe Dumez
2007-09-09 07:44:22 +00:00
parent 6ba4588e62
commit 078c80c81d
9 changed files with 619 additions and 2122 deletions

View File

@@ -59,6 +59,8 @@ class bittorrent : public QObject{
QStringList unfinishedTorrents;
bool preAllocateAll;
bool addInPause;
int maxConnecsPerTorrent;
int maxUploadsPerTorrent;
protected:
QString getSavePath(QString hash);
@@ -112,6 +114,8 @@ class bittorrent : public QObject{
// Session configuration - Setters
void setListeningPortsRange(std::pair<unsigned short, unsigned short> ports);
void setMaxConnections(int maxConnec);
void setMaxConnectionsPerTorrent(int max);
void setMaxUploadsPerTorrent(int max);
void setDownloadRateLimit(long rate);
void setUploadRateLimit(long rate);
void setGlobalRatio(float ratio);