mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 22:22:45 -04:00

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5833 b45a01b8-16f6-495d-af2f-9b41ad6348cc
24 lines
517 B
C++
24 lines
517 B
C++
#include "MonitoredTurtle.h"
|
|
|
|
bool MonitoredTurtleRouter::performLocalHashSearch(const TurtleFileHash& hash,const std::string& peer_id,FileInfo& info)
|
|
{
|
|
std::map<std::string,FileInfo>::const_iterator it( _local_files.find(hash) ) ;
|
|
|
|
if(it != _local_files.end() )
|
|
{
|
|
info = it->second ;
|
|
return true ;
|
|
}
|
|
else
|
|
return false ;
|
|
}
|
|
|
|
void MonitoredTurtleRouter::provideFileHash(const std::string& hash)
|
|
{
|
|
FileInfo& info( _local_files[hash] ) ;
|
|
|
|
info.fname = "File 1" ;
|
|
info.size = 100000 ;
|
|
info.hash = hash ;
|
|
}
|
|
|