1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 17:56:44 +02:00

allow resuming of broken file transfers (needs testing)

This commit is contained in:
Jfreegman
2014-08-16 17:20:53 -04:00
parent ae83725cb6
commit b870679f2c
6 changed files with 71 additions and 5 deletions

View File

@ -35,9 +35,11 @@ struct FileReceiver {
FILE *file;
bool pending;
bool active;
bool paused;
uint64_t size;
uint64_t bytes_recv;
double bps;
uint64_t last_progress;
uint64_t last_progress; /* unix-time when we last updated progress */
uint32_t line_id;
};
@ -64,6 +66,7 @@ typedef struct {
uint8_t status;
struct LastOnline last_online;
struct FileReceiver file_receiver[MAX_FILES];
uint8_t active_file_receivers;
} ToxicFriend;
typedef struct {