mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 00:55:13 -04:00
Added Bandwidth Monitoring service to libretroshare to help debug Lag.
- p3bwctrl.h/.cc & rsbwctrlitems.h/.cc - New Interface in pqihandler to extract the data. - New Interface in rsconfig to display in GUI. - Added extra debugging in pqistreamer for catching big outqueues. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5241 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0d3d1ebc18
commit
48a1c66c60
16 changed files with 880 additions and 31 deletions
|
@ -29,6 +29,7 @@
|
|||
#include <inttypes.h>
|
||||
#include <string>
|
||||
#include <list>
|
||||
#include <map>
|
||||
|
||||
/* The New Config Interface Class */
|
||||
class RsServerConfig;
|
||||
|
@ -134,14 +135,31 @@ class RsConfigDataRates
|
|||
public:
|
||||
RsConfigDataRates()
|
||||
{
|
||||
maxDownloadDataRate = 0;
|
||||
maxUploadDataRate = 0;
|
||||
maxIndivDataRate = 0;
|
||||
mRateIn = 0;
|
||||
mRateMaxIn = 0;
|
||||
mAllocIn = 0;
|
||||
|
||||
mAllocTs = 0;
|
||||
|
||||
mRateOut = 0;
|
||||
mRateMaxOut = 0;
|
||||
mAllowedOut = 0;
|
||||
|
||||
mAllowedTs = 0;
|
||||
}
|
||||
|
||||
int maxDownloadDataRate; /* kb */
|
||||
int maxUploadDataRate; /* kb */
|
||||
int maxIndivDataRate; /* kb */
|
||||
/* all in kB/s */
|
||||
float mRateIn;
|
||||
float mRateMaxIn;
|
||||
float mAllocIn;
|
||||
|
||||
time_t mAllocTs;
|
||||
|
||||
float mRateOut;
|
||||
float mRateMaxOut;
|
||||
float mAllowedOut;
|
||||
|
||||
time_t mAllowedTs;
|
||||
};
|
||||
|
||||
|
||||
|
@ -209,7 +227,9 @@ virtual int getConfigNetStatus(RsConfigNetStatus &status) = 0;
|
|||
|
||||
// NOT IMPLEMENTED YET!
|
||||
//virtual int getConfigStartup(RsConfigStartup ¶ms) = 0;
|
||||
//virtual int getConfigDataRates(RsConfigDataRates ¶ms) = 0;
|
||||
|
||||
virtual int getTotalBandwidthRates(RsConfigDataRates &rates) = 0;
|
||||
virtual int getAllBandwidthRates(std::map<std::string, RsConfigDataRates> &ratemap) = 0;
|
||||
|
||||
/* From RsInit */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue