add function comments

This commit is contained in:
Nayan
2025-05-08 21:31:43 -04:00
parent b52ce7dd0c
commit 51fe7e1c8d
5 changed files with 157 additions and 17 deletions

View File

@@ -11,6 +11,19 @@
#include <sys/time.h>
#include <sys/types.h>
/**
* Handles a single client connection. Meant to be run in a separate thread.
*
* @param args A pointer to the file descriptor of the client
*
* @return NULL
*
* @details
* This function is designed to be run in a separate thread. It will receive
* requests from the client until the client disconnects, at which point it will
* return. Reading the requests and building responses is handled by
* handle_request.
*/
void* client_handler(void* args);
#endif