diff options
author | 2010-07-26 15:49:44 +0300 | |
---|---|---|
committer | 2010-07-26 15:49:44 +0300 | |
commit | 5150d35df6e1a56c2e66b33aac9e86a3503b1bb7 (patch) | |
tree | 2d2b7764a5590decdca045dcbab89e06599f476f /segget/distfile.h | |
parent | Implement checks for both (proxy_fetcher and request_server) queues. (diff) | |
download | idfetch-5150d35df6e1a56c2e66b33aac9e86a3503b1bb7.tar.gz idfetch-5150d35df6e1a56c2e66b33aac9e86a3503b1bb7.tar.bz2 idfetch-5150d35df6e1a56c2e66b33aac9e86a3503b1bb7.zip |
Check all set checksums, checksums are optional
Diffstat (limited to 'segget/distfile.h')
-rw-r--r-- | segget/distfile.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/segget/distfile.h b/segget/distfile.h index 8d42894..973bf67 100644 --- a/segget/distfile.h +++ b/segget/distfile.h @@ -111,6 +111,10 @@ class Tdistfile{ string RMD160; string SHA1; string SHA256; + string SHA512; + string WHIRLPOOL; + string MD5; + string CRC32; uint url_count; uint segment_size; Tdistfile(): @@ -130,6 +134,10 @@ class Tdistfile{ RMD160(""), SHA1(""), SHA256(""), + SHA512(""), + WHIRLPOOL(""), + MD5(""), + CRC32(""), url_count(0), segment_size(settings.max_segment_size) {init();}; @@ -139,7 +147,7 @@ class Tdistfile{ int request(ulong network_num, string msg); void init(); bool allows_new_actions(); - void load_distfile_from_json(json_object* json_obj_distfile); + bool load_distfile_from_json(json_object* json_obj_distfile); void load_url_list(json_object* json_array_distfile_urllist); void split_into_segments(); uint provide_local_network(CURLM* cm, uint connection_num, uint seg_num, uint network_priority); |