1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 20:16:44 +02:00

show percentage complete for file transfers

This commit is contained in:
Jfreegman
2014-03-27 23:05:50 -04:00
parent 94e936575e
commit b36a8fd8fa
6 changed files with 63 additions and 10 deletions

View File

@ -207,12 +207,16 @@ typedef struct {
uint16_t piecelen;
uint8_t pathname[MAX_STR_SIZE];
uint64_t timestamp;
uint64_t size;
uint32_t line_id;
} FileSender;
struct FileReceiver {
uint8_t filenames[MAX_FILES][MAX_STR_SIZE];
FILE *files[MAX_FILES];
bool pending[MAX_FILES];
uint64_t size[MAX_FILES];
uint32_t line_id;
};
/* End file transfer code */