mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 14:30:43 -04:00
changed a bit the file transfer strategy. To be tested further.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3898 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a79d2a8e53
commit
f5bfc8c92a
4 changed files with 50 additions and 20 deletions
|
@ -36,6 +36,13 @@
|
|||
#include "ftchunkmap.h"
|
||||
#include <map>
|
||||
|
||||
class ZeroInitCounter
|
||||
{
|
||||
public:
|
||||
ZeroInitCounter(): cnt(0) {}
|
||||
uint32_t cnt ;
|
||||
};
|
||||
|
||||
class ftFileCreator: public ftFileProvider
|
||||
{
|
||||
public:
|
||||
|
@ -131,6 +138,7 @@ class ftFileCreator: public ftFileProvider
|
|||
uint64_t mEnd;
|
||||
|
||||
std::map<uint64_t, ftChunk> mChunks;
|
||||
std::map<std::string,ZeroInitCounter> mChunksPerPeer ;
|
||||
|
||||
ChunkMap chunkMap ;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue