mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-30 17:59:02 -04:00
added missing code for remote search by hash, fixing the bug of direct sources not added
This commit is contained in:
parent
8d146038c2
commit
160ab7b4f3
4 changed files with 39 additions and 7 deletions
|
@ -203,6 +203,18 @@ public:
|
|||
* \return
|
||||
*/
|
||||
time_t& lastSweepTime() { return mLastSweepTime ; }
|
||||
|
||||
/*!
|
||||
* \brief searchHash
|
||||
* Looks into local database of shared files for the given hash.
|
||||
* \param hash hash to look for
|
||||
* \param results Entry index of the file that is found
|
||||
* \return
|
||||
* true is a file is found
|
||||
* false otherwise.
|
||||
*/
|
||||
virtual int searchHash(const RsFileHash& hash, EntryIndex& results) const ;
|
||||
|
||||
private:
|
||||
time_t mLastSweepTime ;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue