ft filekind refactor + connection state drafting
This commit is contained in:
@@ -49,6 +49,17 @@ struct FTInfoSHA1 {
|
||||
std::vector<uint8_t> toBuffer(void) const;
|
||||
void fromBuffer(const std::vector<uint8_t>& buffer);
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, const FTInfoSHA1& v);
|
||||
|
||||
// TODO: use
|
||||
struct FTInfoSHA1v2 {
|
||||
std::vector<std::string> file_names;
|
||||
uint64_t file_size {0};
|
||||
uint32_t chunk_size {128*1024}; // 128KiB for now
|
||||
std::vector<SHA1Digest> chunks;
|
||||
|
||||
std::vector<uint8_t> toBuffer(void) const;
|
||||
void fromBuffer(const std::vector<uint8_t>& buffer);
|
||||
};
|
||||
std::ostream& operator<<(std::ostream& out, const FTInfoSHA1& v);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user