From 324fdcfd583dbd95ce479712be57c6ca93c29fbb Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Thu, 23 Sep 2021 22:05:20 +0200 Subject: runtime split original file into chunks No need to split the original file on the server side. --- src/core.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core.h') diff --git a/src/core.h b/src/core.h index 36fb205..0a82d2e 100644 --- a/src/core.h +++ b/src/core.h @@ -6,6 +6,8 @@ #include #include +#define MAX_CHUNKS 4 + #define TIP_MSG_REQUEST_MAXLEN 131072 extern const char *root; @@ -48,7 +50,9 @@ struct tip_client { enum tip_http_method method; const char *uri; const char *path; + uint32_t chunk; off_t size; + off_t left; int fd; off_t offset; -- cgit v1.2.3-18-g5258