aboutsummaryrefslogtreecommitdiffstats
path: root/server/channel.h
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov@twistea.su>2025-02-08 22:13:52 +0300
committerjustanothercatgirl <sotov@twistea.su>2025-02-08 22:13:52 +0300
commitcab382db088d9f240253466a1c5a26c62f3967c8 (patch)
treec5502f1b49211dccd3e29e163e708708495a6407 /server/channel.h
parent3eeee14d5d5c93ae3d156aabae5a96d1c09f185a (diff)
Implemented multiplexing in main thread (TCP loop). Removed CMake files.HEADmaster
TODO: Implement multiplexing in worker threads (UDP loops), implement channel_pool interface.
Diffstat (limited to 'server/channel.h')
-rw-r--r--server/channel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/channel.h b/server/channel.h
index 8068a4c..549ff21 100644
--- a/server/channel.h
+++ b/server/channel.h
@@ -18,10 +18,12 @@ struct thread_loop_arg {
pthread_mutex_t *sock_mx;
pthread_cond_t *sock_ready_cond;
u64 owner;
- const unsigned char *pubkey;
+ int pipefd;
};
// main function that manages every channel
void *thread_loop(void *);
+void *new_thread_loop(void *);
#endif // KV_SERVER_CHANNEL_H
+/* vim: set ts=8 noet: */