mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-28 16:17:28 -04:00
added GUI and storage for max up/dn rates per peer
This commit is contained in:
parent
0e857096c1
commit
20b6745f70
12 changed files with 218 additions and 101 deletions
|
@ -276,6 +276,9 @@ class RsPeerDetails
|
|||
|
||||
/* linkType */
|
||||
uint32_t linkType;
|
||||
|
||||
uint32_t maxRateUp;
|
||||
uint32_t maxRateDn;
|
||||
};
|
||||
|
||||
// This class is used to get info about crytographic algorithms used with a
|
||||
|
@ -428,6 +431,8 @@ public:
|
|||
virtual ServicePermissionFlags servicePermissionFlags(const RsPgpId& gpg_id) = 0;
|
||||
virtual ServicePermissionFlags servicePermissionFlags(const RsPeerId& ssl_id) = 0;
|
||||
virtual void setServicePermissionFlags(const RsPgpId& gpg_id,const ServicePermissionFlags& flags) = 0;
|
||||
|
||||
virtual bool setPeerMaximumRates(const RsPeerId& pid,uint32_t maxUploadRate,uint32_t maxDownloadRate) =0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue