mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-12 16:43:17 -04:00
Finished off the basic Link Ranking system.
* added serialiser types. * finished streaming on p3ranking. * removed Bandwidth limitations from BinFile / BinMem. * added bytecount() to BinInterface. * moved the CacheTransfer creation to Startup. * added ranking to CacheStrapper & server tick() system. * Tweaked LinksDialog for final touches. * enabled downloads from Messages. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@335 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
925b1a780e
commit
2c69fd7eaf
19 changed files with 744 additions and 112 deletions
|
@ -57,13 +57,18 @@ virtual bool moretoread()
|
|||
|
||||
|
||||
virtual bool cansend() { return (bin_flags | BIN_FLAGS_WRITEABLE); }
|
||||
virtual bool bandwidthLimited() { return false; }
|
||||
|
||||
/* if HASHing is switched on */
|
||||
virtual std::string gethash();
|
||||
virtual uint64_t bytecount();
|
||||
|
||||
private:
|
||||
int bin_flags;
|
||||
FILE *buf;
|
||||
int size;
|
||||
pqihash *hash;
|
||||
uint64_t bcount;
|
||||
};
|
||||
|
||||
|
||||
|
@ -96,7 +101,10 @@ virtual bool moretoread()
|
|||
}
|
||||
|
||||
virtual bool cansend() { return (bin_flags | BIN_FLAGS_WRITEABLE); }
|
||||
virtual bool bandwidthLimited() { return false; }
|
||||
|
||||
virtual std::string gethash();
|
||||
virtual uint64_t bytecount();
|
||||
|
||||
private:
|
||||
int bin_flags;
|
||||
|
@ -105,6 +113,7 @@ virtual std::string gethash();
|
|||
int recvsize;
|
||||
int readloc;
|
||||
pqihash *hash;
|
||||
uint64_t bcount;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue