mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-19 11:54:22 -04:00
added non aggressive mode option to turtle router to make distant chat happy
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7856 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d886c34233
commit
817aa793fc
5 changed files with 12 additions and 10 deletions
|
@ -197,9 +197,10 @@ class TurtleHashInfo
|
|||
{
|
||||
public:
|
||||
std::vector<TurtleTunnelId> tunnels ; // list of active tunnel ids for this file hash
|
||||
TurtleRequestId last_request ; // last request for the tunnels of this hash
|
||||
time_t last_digg_time ; // last time the tunnel digging happenned.
|
||||
RsTurtleClientService *service ; // client service to which items should be sent. Never NULL.
|
||||
TurtleRequestId last_request ; // last request for the tunnels of this hash
|
||||
time_t last_digg_time ; // last time the tunnel digging happenned.
|
||||
RsTurtleClientService *service ; // client service to which items should be sent. Never NULL.
|
||||
bool use_aggressive_mode ; // allow to re-digg tunnels even when some are already available
|
||||
};
|
||||
|
||||
// Subclassing:
|
||||
|
@ -251,7 +252,7 @@ class p3turtle: public p3Service, public RsTurtle, public p3Config
|
|||
// This function should be called in addition to ftServer::FileRequest() so that the turtle router
|
||||
// automatically provide tunnels for the file to download.
|
||||
//
|
||||
virtual void monitorTunnels(const RsFileHash& file_hash,RsTurtleClientService *client_service) ;
|
||||
virtual void monitorTunnels(const RsFileHash& file_hash,RsTurtleClientService *client_service, bool allow_multi_tunnels) ;
|
||||
|
||||
/// This should be called when canceling a file download, so that the turtle router stops
|
||||
/// handling tunnels for this file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue