diff options
author | Ian Moffett <ian@osmora.org> | 2024-10-03 21:20:33 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-10-03 21:20:33 -0500 |
commit | 85c4c48480c6f0aabcd8ccb38036392b71a05c2e (patch) | |
tree | e76bacb0eb78b5c7a8a20e5c47110f3f7b2aea01 /lib/include | |
parent | fe5120087d24cdd07ef65d85f60eb11f4ae12cf2 (diff) |
lib: server: Add listener_clients()
Add function to return a list of connected clients.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/include')
-rw-r--r-- | lib/include/server.h | 1 |
1 files changed, 1 insertions, 0 deletions
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_ */ |