From d3046284b23ca81be438c94e8f83b7e13e929d81 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sat, 28 Sep 2024 16:09:14 +0300 Subject: Make it multithreaded And also add `int n` to the CPTC_requestHandler so it threads will not conflict with each other with filenames --- cptc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cptc.h') diff --git a/cptc.h b/cptc.h index 2eaa14f..9b57cd0 100644 --- a/cptc.h +++ b/cptc.h @@ -14,7 +14,7 @@ extern const char *CPTC_token; extern const char *CPTC_root; void CPTC(const char *address, in_port_t port); -void CPTC_requestHandler(int fd); +void CPTC_requestHandler(int fd, int n); char *CPTC_downloadAvatar(long long uid, const char *download_path); #endif /* __CPTC_H__ */ -- cgit 1.4.1