diff options
| author | Nakidai <nakidai@disroot.org> | 2025-06-18 16:39:41 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2025-06-18 16:50:57 +0300 |
| commit | f41dd07dfc4ad4e5b77ebc24986cb3422f44ea5e (patch) | |
| tree | a2770addaa6082b01c136bc603d0319338e1d8ed /cptc.h | |
| parent | 820203c352d2af7318e67640282a69ed41598f93 (diff) | |
| download | cptc-f41dd07dfc4ad4e5b77ebc24986cb3422f44ea5e.tar.gz cptc-f41dd07dfc4ad4e5b77ebc24986cb3422f44ea5e.zip | |
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
Diffstat (limited to 'cptc.h')
| -rw-r--r-- | cptc.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |