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:
drbob 2008-02-05 13:45:04 +00:00
parent 925b1a780e
commit 2c69fd7eaf
19 changed files with 744 additions and 112 deletions

View file

@ -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;
};