rename hashmap

This commit is contained in:
2024-11-10 20:26:01 +01:00
parent 3cc1613d93
commit 7db494eaaf
4 changed files with 134 additions and 53 deletions

View File

@@ -14,6 +14,8 @@
#include <sys/types.h>
#include <unistd.h>
#include "hashmap.h"
/* On which port the server will run */
#define PORT 3030
@@ -86,4 +88,11 @@ void setnonblocking(int sockfd);
*/
int handle_new_client(int sockfd, struct sockaddr_storage *their_sa, socklen_t *theirsa_size);
/**
* @brief Closes all the file descriptors opened
*
* @param map[in] The hash map
*/
void close_fds(bucket_t *bucket);
#endif