RetroShare/libretroshare/src/serialiser
csoler 889a2b2433 Added deferred check of chunks during file transfer. Chunk sha1 sums are requested to the sources and checked for downloaded data.
Validated chunks are shared to other peers. Force check is now very simple since it just turns all chunks into "needs checking" mode
and sums are asked to sources. Sources maintain a temporary cache of chunks. Since sums are requested sparsely, this should not 
affect the sources in terms of performance. We can still imagine precomputing and saving sha1 of chunks while hashing them.

For backward compatibility reasons, the following has been setup *temporarily* in this version:
- unvalidated chunks are still considered as already obtained, and are shared and saved
- force check has been disabled
- final file check is maintained
- in case of file fail, the old checking mode will be used.

All changes for next version are kept in the define 'USE_NEW_CHUNK_CHECKING_CODE' that will be made the default in a few weeks.
At start, I expect most chunk to stya yellow during download, until most sources are able to provide chunk hashs.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5019 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2012-03-15 19:55:43 +00:00
..
itempriorities.h Added deferred check of chunks during file transfer. Chunk sha1 sums are requested to the sources and checked for downloaded data. 2012-03-15 19:55:43 +00:00
rsbanlistitems.cc Added first part of p3banlist. 2011-11-23 16:40:32 +00:00
rsbanlistitems.h Fixed Dsdv debugging and cleanup of old entries. 2011-11-29 17:14:51 +00:00
rsbaseitems.cc Added deferred check of chunks during file transfer. Chunk sha1 sums are requested to the sources and checked for downloaded data. 2012-03-15 19:55:43 +00:00
rsbaseitems.h Added deferred check of chunks during file transfer. Chunk sha1 sums are requested to the sources and checked for downloaded data. 2012-03-15 19:55:43 +00:00
rsbaseserial.cc Memory leak and compiler warnings fixes: 2010-06-07 01:47:15 +00:00
rsbaseserial.h added regexp search to turtle router 2009-08-25 12:04:43 +00:00
rsblogitems.cc completed distrib items (chan,blog, forum and base unit tests) 2010-07-28 23:12:19 +00:00
rsblogitems.h completed distrib items (chan,blog, forum and base unit tests) 2010-07-28 23:12:19 +00:00
rschannelitems.cc Added read/unread state to channel service (copied from forum service). 2010-10-07 00:17:42 +00:00
rschannelitems.h Added read/unread state to channel service (copied from forum service). 2010-10-07 00:17:42 +00:00
rsconfigitems.cc Cleaned up rsPeers to remove 10 minute reconnect. The reconnect was caused by 2011-08-07 21:11:00 +00:00
rsconfigitems.h Moved the chat history into the libretroshare. 2011-09-29 09:20:09 +00:00
rsdiscitems.cc Removed unused parameter warnings in libretroshare. 2011-08-12 13:42:30 +00:00
rsdiscitems.h merge of QoS branch into trunk 2011-09-04 20:01:30 +00:00
rsdistribitems.cc Removed unnecessary variable "ownId" in ftController::FileRequest. 2011-01-04 19:46:27 +00:00
rsdistribitems.h corrected uninitialised memory read 2010-11-21 13:30:34 +00:00
rsdsdvitems.cc Added Dsdv Data transport packet. 2011-11-21 14:38:13 +00:00
rsdsdvitems.h Fixed Dsdv debugging and cleanup of old entries. 2011-11-29 17:14:51 +00:00
rsforumitems.cc suppressed debug printfs and costly outputs 2011-01-20 17:25:30 +00:00
rsforumitems.h completed distrib items (chan,blog, forum and base unit tests) 2010-07-28 23:12:19 +00:00
rsgameitems.cc Lots of bugfixes and tweaks: 2008-03-31 14:06:59 +00:00
rsgameitems.h Improvements to the Games Launcher. 2008-03-17 14:24:56 +00:00
rshistoryitems.cc Moved the chat history into the libretroshare. 2011-09-29 09:20:09 +00:00
rshistoryitems.h Moved the chat history into the libretroshare. 2011-09-29 09:20:09 +00:00
rsmsgitems.cc Suppressed echoes in chat lobbies by: 2012-01-27 23:13:28 +00:00
rsmsgitems.h Suppressed echoes in chat lobbies by: 2012-01-27 23:13:28 +00:00
rsphotoitems.cc Addition of two more Services / Applications. 2008-03-04 21:31:11 +00:00
rsphotoitems.h Removed unused parameter warnings in libretroshare. 2011-08-12 13:42:30 +00:00
rspluginitems.cc Improvement of the plugin system: 2011-07-05 20:29:07 +00:00
rspluginitems.h Improvement of the plugin system: 2011-07-05 20:29:07 +00:00
rsserial.cc merge of QoS branch into trunk 2011-09-04 20:01:30 +00:00
rsserial.h merge of QoS branch into trunk 2011-09-04 20:01:30 +00:00
rsserviceids.h moved RS_SERVICE_TYPE_VOIP into plugin 2012-02-26 15:36:07 +00:00
rsstatusitems.cc Removed unused parameter warnings in libretroshare. 2011-08-12 13:42:30 +00:00
rsstatusitems.h merge of QoS branch into trunk 2011-09-04 20:01:30 +00:00
rstlvaddrs.cc Found cause of OSX network resets / lost connections: inet_ntoa is not thread-safe. 2010-07-10 20:34:03 +00:00
rstlvaddrs.h Network REWORK. 2010-07-04 10:17:37 +00:00
rstlvbanlist.cc Improvement to BanPeers Sharing Code. 2011-11-25 00:58:01 +00:00
rstlvbanlist.h Added first part of p3banlist. 2011-11-23 16:40:32 +00:00
rstlvbase.cc Added more debug to serialisers. 2011-07-29 15:17:39 +00:00
rstlvbase.h Added first part of p3banlist. 2011-11-23 16:40:32 +00:00
rstlvdsdv.cc Improvement to BanPeers Sharing Code. 2011-11-25 00:58:01 +00:00
rstlvdsdv.h Added Dsdv Data transport packet. 2011-11-21 14:38:13 +00:00
rstlvfileitem.cc * Major tweak to the serialiser: shifted size to 32bits to handle bigger packets. This will break compatibility. 2009-09-08 20:18:43 +00:00
rstlvimage.cc completed distrib items (chan,blog, forum and base unit tests) 2010-07-28 23:12:19 +00:00
rstlvkeys.cc Fix incorrect TLV Signature DataType. 2010-07-05 18:32:53 +00:00
rstlvkeys.h fix for compilation issue 2011-01-25 11:24:06 +00:00
rstlvkvwide.cc * Major tweak to the serialiser: shifted size to 32bits to handle bigger packets. This will break compatibility. 2009-09-08 20:18:43 +00:00
rstlvkvwide.h * Major tweak to the serialiser: shifted size to 32bits to handle bigger packets. This will break compatibility. 2009-09-08 20:18:43 +00:00
rstlvtypes.cc Removed unused parameter warnings in libretroshare. 2011-08-12 13:42:30 +00:00
rstlvtypes.h completed distrib items (chan,blog, forum and base unit tests) 2010-07-28 23:12:19 +00:00
rstlvutil.cc Removed unused parameter warnings in libretroshare. 2011-08-12 13:42:30 +00:00
rstlvutil.h Addition of new makefile scripts. 2007-11-16 04:45:00 +00:00
rstunnelitems.cc Corrected two harmful bugs in tunnel connexion code: 2010-06-22 21:05:56 +00:00
rstunnelitems.h Corrected two harmful bugs in tunnel connexion code: 2010-06-22 21:05:56 +00:00