mirror of
https://github.com/opus-tango/http-server-in-c.git
synced 2026-03-20 03:55:25 +00:00
add function comments
This commit is contained in:
@@ -4,19 +4,6 @@
|
||||
|
||||
#define BUFFER_SIZE 1024
|
||||
|
||||
/**
|
||||
* Handles a single client connection.
|
||||
*
|
||||
* @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) {
|
||||
log_message(LOG_DEBUG, "Client handler started");
|
||||
// Cast args
|
||||
|
||||
Reference in New Issue
Block a user