#ifndef KV_SERVER_CHANNEL_H #define KV_SERVER_CHANNEL_H #include #include #include #include #include #include #include #include /// Required for the calling thread to set socket file descriptor struct thread_loop_arg { int *sock_dest; pthread_mutex_t *sock_mx; pthread_cond_t *sock_ready_cond; u64 owner; const unsigned char *pubkey; }; // main function that manages every channel void *thread_loop(void *); #endif // KV_SERVER_CHANNEL_H