only assume availability for cache transfers. All other transfers now use ChunkMaps

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3853 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-11-22 20:57:53 +00:00
parent 0b9a5e5b2b
commit b94e4376a4
5 changed files with 16 additions and 15 deletions

View file

@ -92,10 +92,7 @@ class ChunkMap
/// Constructor. Decides what will be the size of chunks and how many there will be.
ChunkMap(uint64_t file_size) ;
/// constructor from saved map info
ChunkMap(uint64_t file_size,const std::vector<uint32_t>& map,uint32_t chunk_size,uint32_t chunk_number,FileChunksInfo::ChunkStrategy s) ;
ChunkMap(uint64_t file_size,bool assume_availability) ;
/// destructor
virtual ~ChunkMap() {}
@ -184,6 +181,7 @@ class ChunkMap
std::map<std::string,SourceChunksInfo> _peers_chunks_availability ; //! what does each source peer have
uint64_t _total_downloaded ; //! completion for the file
bool _file_is_complete ; //! set to true when the file is complete.
bool _assume_availability ; //! true if all sources always have the complete file.
};