fix http resource not found

This commit is contained in:
2025-04-28 18:24:10 +02:00
parent b9dd1c4007
commit 26f290357d
5 changed files with 32 additions and 25 deletions

View File

@@ -15,6 +15,9 @@
/* Wait forever (epoll_wait()) */
#define CWS_SERVER_EPOLL_TIMEOUT -1
/* Main server loop */
extern volatile bool cws_server_run;
/**
* @brief Runs the server
*
@@ -40,12 +43,6 @@ void cws_server_setup_hints(struct addrinfo *hints, size_t len, const char *host
*/
void cws_server_loop(int sockfd);
// @TODO
/**
* @brief Cleanup server's resources
*/
void cws_server_cleanup();
/**
* @brief Adds a file descriptor to the interest list
*

View File

@@ -8,7 +8,7 @@
#define CWS_HASHMAP_MAX_CLIENTS 1024
/**
* @brief Hash map struct
* @brief Client Hashmap struct
*
*/
typedef struct cws_bucket_t {