From 0b099f433cc301258b009235b933726d35313b63 Mon Sep 17 00:00:00 2001 From: "mfchen@caltech.edu" <mfchen@caltech.edu> Date: Fri, 2 May 2025 03:10:34 +0000 Subject: [PATCH] update docs --- include/network_util.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/network_util.h b/include/network_util.h index 020d83a..67b0184 100644 --- a/include/network_util.h +++ b/include/network_util.h @@ -11,8 +11,14 @@ typedef struct connection connection_t; /** - * TODO: put docs here - **/ + * A callback function type used for handling network events. + * + * @param fd The file descriptor of the connection + * @param str The string data received from the connection + * + * This callback is typically used with the nu_multiplex function to handle + * data received from local or remote connections. + */ typedef void nu_callback(int fd, char *str); /** -- GitLab