mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-16 13:02:27 -04:00
added global switch to enable/disable anonymous routing. This will be used for connexion profiles with very limited bandwidth
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5886 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
863951c589
commit
fd723bcea7
6 changed files with 99 additions and 35 deletions
|
@ -218,6 +218,11 @@ class p3turtle: public p3Service, public RsTurtle, public p3Config
|
|||
public:
|
||||
p3turtle(p3LinkMgr *lm,ftServer *m);
|
||||
|
||||
// Enables/disable the service. Still ticks, but does nothing. Default is true.
|
||||
//
|
||||
virtual void setEnabled(bool) ;
|
||||
virtual bool enabled() const ;
|
||||
|
||||
// Lauches a search request through the pipes, and immediately returns
|
||||
// the request id, which will be further used by the gui to store results
|
||||
// as they come back.
|
||||
|
@ -252,7 +257,7 @@ class p3turtle: public p3Service, public RsTurtle, public p3Config
|
|||
|
||||
virtual void getTrafficStatistics(TurtleTrafficStatisticsInfo& info) const ;
|
||||
|
||||
/************* from pqiMonitor *******************/
|
||||
/************* from p3service *******************/
|
||||
|
||||
/// This function does many things:
|
||||
/// - It handles incoming and outgoing packets
|
||||
|
@ -425,6 +430,7 @@ class p3turtle: public p3Service, public RsTurtle, public p3Config
|
|||
TurtleTrafficStatisticsInfoOp _traffic_info_buffer ; // used as a buffer to collect bytes
|
||||
|
||||
float _max_tr_up_rate ;
|
||||
bool _turtle_routing_enabled ;
|
||||
|
||||
#ifdef P3TURTLE_DEBUG
|
||||
// debug function
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue