📄 dhblock_chash.h
字号:
#include "dhblock.h"#include "dhash.h"struct dhblock_chash : public dhblock { static u_int num_efrags (); static u_int num_dfrags (); vec<str> frags; str result_str; bool done_flag; dhblock_chash::dhblock_chash () : done_flag (false) {}; int process_download (blockID k, str frag); str produce_block_data (); bool done () { return done_flag; }; str generate_fragment (ptr<dhash_block> block, int n); u_int min_put () { return num_dfrags (); }; u_int num_put () { return num_efrags (); }; u_int num_fetch (); u_int min_fetch () { return num_dfrags (); }; static bool verify (chordID key, str data); static vec<str> get_payload (str data); static str marshal_block (str data);};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -