From 85c4c48480c6f0aabcd8ccb38036392b71a05c2e Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 3 Oct 2024 21:20:33 -0500 Subject: lib: server: Add listener_clients() Add function to return a list of connected clients. Signed-off-by: Ian Moffett --- lib/include/server.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/include') diff --git a/lib/include/server.h b/lib/include/server.h index 9e09f78..52f92ce 100644 --- a/lib/include/server.h +++ b/lib/include/server.h @@ -59,5 +59,6 @@ int listener_bind(struct ostp_listener *lp); int listener_poll(struct ostp_listener *lp); void listener_cleanup(struct ostp_listener *lp); void listener_close(struct ostp_listener *lp, struct ostp_client *c); +int listener_clients(struct ostp_listener *lp, struct ostp_client **res); #endif /* !LIBOSTP_SERVER_H_ */ -- cgit v1.2.3