From f41dd07dfc4ad4e5b77ebc24986cb3422f44ea5e Mon Sep 17 00:00:00 2001 From: Nakidai Date: Wed, 18 Jun 2025 16:39:41 +0300 Subject: Remove pthreads I decided that they're not needed there. Instead you can run multiple instances to make them run in parallel. For this flag -w/--id is added --- cptc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cptc.h') diff --git a/cptc.h b/cptc.h index 463e2c9..55b78b6 100644 --- a/cptc.h +++ b/cptc.h @@ -30,8 +30,9 @@ extern const char *CPTC_root; * Starts CPTC server * @param address Adress to bind * @param port Port to bind + * @param id Worker ID */ -void CPTC(const char *address, in_port_t port); +void CPTC(const char *address, in_port_t port, unsigned id); /** * Handles request -- cgit 1.4.1