aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/client.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h
index a4cb4a902..db4bc2023 100644
--- a/src/client.h
+++ b/src/client.h
@@ -21,6 +21,8 @@
#include "os_compat.h"
+struct client;
+
void client_manager_init(void);
void client_manager_deinit(void);
int client_manager_io(void);
@@ -28,6 +30,13 @@ void client_manager_expire(void);
void client_new(int fd, const struct sockaddr *addr);
+/**
+ * Return the file descriptor of this client's socket. This function
+ * will be removed once we have migrated to passing the client struct
+ * everywhere.
+ */
+int client_get_fd(struct client *client);
+
int client_print(int fd, const char *buffer, size_t len);
#endif