]> jfr.im git - solanum.git/blobdiff - include/hash.h
client: use sequential connection ids for ssld connections in ssld RPC, instead of...
[solanum.git] / include / hash.h
index 6dc2d4e91aefb011d152f80211ac94d9881cd67f..d1da309df506589860963a58b03ef19dcf5a104b 100644 (file)
@@ -45,8 +45,8 @@ extern struct Dictionary *nd_dict;
 #define U_MAX_BITS 17
 #define U_MAX 131072 /* 2^17 */
 
-/* Client fd hash table size, used in hash.c */
-#define CLI_FD_MAX 4096
+/* Client connid hash table size, used in hash.c */
+#define CLI_CONNID_MAX 4096
 
 /* Channel hash table size, hash.c/s_debug.c */
 #define CH_MAX_BITS 16
@@ -101,9 +101,12 @@ extern void del_from_resv_hash(const char *name, struct ConfItem *aconf);
 extern struct ConfItem *hash_find_resv(const char *name);
 extern void clear_resv_hash(void);
 
-void add_to_cli_fd_hash(struct Client *client_p);
-void del_from_cli_fd_hash(struct Client *client_p);
-struct Client *find_cli_fd_hash(int fd);
+void add_to_cli_connid_hash(struct Client *client_p);
+void del_from_cli_connid_hash(struct Client *client_p);
+struct Client *find_cli_connid_hash(int connid);
+
+void add_to_zconnid_hash(struct Client *client_p);
+void del_from_zconnid_hash(struct Client *client_p);
 
 extern void hash_stats(struct Client *);