diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-28 17:08:17 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-28 17:08:17 +0100 |
| commit | f3f640b6bcf10ba463fc81cec97cfa212c520cfe (patch) | |
| tree | 94341752815b6b2d4c3a931be9b90c2c0f435baf /ot_udp.h | |
| parent | 18fcb27ec91f27789270550a2a005cb773bf2fe0 (diff) | |
Performance improvement, where it works: Let different udp worker threads have their own socket
Diffstat (limited to 'ot_udp.h')
| -rw-r--r-- | ot_udp.h | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -11,7 +11,8 @@ | |||
| 11 | #include "trackerlogic.h" | 11 | #include "trackerlogic.h" |
| 12 | 12 | ||
| 13 | void udp_init(void); | 13 | void udp_init(void); |
| 14 | void udp_workers_install(int64_t sock, unsigned int worker_count); | 14 | /* One thread reading one socket. Called once per worker. */ |
| 15 | void udp_worker_install(int64_t sock); | ||
| 15 | int handle_udp6(int64_t serversocket, struct ot_workstruct *ws); | 16 | int handle_udp6(int64_t serversocket, struct ot_workstruct *ws); |
| 16 | 17 | ||
| 17 | #endif | 18 | #endif |
