mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-09 09:35:32 -04:00
* Moved DataRate interface from rsiface (old) -> rsConfig.
* Internally moved storage of data rate from pqipersongroup -> p3serverconfig * made DataRate + Operating Mode work together. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5889 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0fa8d55062
commit
de80f2aa3e
10 changed files with 113 additions and 130 deletions
|
@ -278,8 +278,9 @@ virtual uint32_t getOperatingMode() = 0;
|
|||
virtual bool setOperatingMode(uint32_t opMode) = 0;
|
||||
|
||||
/* Data Rate Control - to be moved here */
|
||||
virtual int SetDataRates( int downKb, int upKb ) = 0;
|
||||
virtual int GetDataRates( float &inKb, float &outKb ) = 0;
|
||||
virtual int SetMaxDataRates( int downKb, int upKb ) = 0;
|
||||
virtual int GetMaxDataRates( int &inKb, int &outKb ) = 0;
|
||||
virtual int GetCurrentDataRates( float &inKb, float &outKb ) = 0;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -157,8 +157,6 @@ class RsControl /* The Main Interface Class - for controlling the server */
|
|||
/****************************************/
|
||||
/* Config */
|
||||
|
||||
virtual int ConfigSetDataRates( int totalDownload, int totalUpload ) = 0;
|
||||
virtual int ConfigGetDataRates( float &inKb, float &outKb) = 0;
|
||||
virtual int ConfigSetBootPrompt( bool on ) = 0;
|
||||
virtual void ConfigFinalSave( ) = 0;
|
||||
virtual void rsGlobalShutDown( ) = 0;
|
||||
|
|
|
@ -112,7 +112,6 @@ class RsConfig
|
|||
{
|
||||
localPort = extPort = 0 ;
|
||||
firewalled = forwardPort = false ;
|
||||
maxDownloadDataRate = maxUploadDataRate = maxIndivDataRate = 0 ;
|
||||
promptAtBoot = 0 ;
|
||||
DHTActive = uPnPActive = netLocalOk = netUpnpOk = netDhtOk = netStunOk = netExtraAddressOk = false ;
|
||||
uPnPState = DHTPeers = 0 ;
|
||||
|
@ -129,10 +128,6 @@ class RsConfig
|
|||
bool firewalled;
|
||||
bool forwardPort;
|
||||
|
||||
int maxDownloadDataRate; /* kb */
|
||||
int maxUploadDataRate; /* kb */
|
||||
int maxIndivDataRate; /* kb */
|
||||
|
||||
int promptAtBoot; /* popup the password prompt */
|
||||
|
||||
/* older data types */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue