refactor: simplify file name

This commit is contained in:
2025-10-26 18:03:21 +01:00
parent 4fced17513
commit 1863c58b4f
17 changed files with 75 additions and 78 deletions

View File

@@ -1,5 +1,5 @@
#ifndef CWS_EPOLL_UTILS_H
#define CWS_EPOLL_UTILS_H
#ifndef CWS_EPOLL_H
#define CWS_EPOLL_H
int cws_epoll_add(int epfd, int sockfd);

View File

@@ -7,7 +7,7 @@
#include "config/config.h"
#include "core/worker.h"
#include "utils/net_utils.h"
#include "utils/error.h"
/* Clients max queue */
#define CWS_SERVER_BACKLOG 128

View File

@@ -6,7 +6,6 @@
#include <signal.h>
#include "config/config.h"
#include "utils/net_utils.h"
extern volatile sig_atomic_t cws_server_run;
@@ -23,8 +22,4 @@ void cws_worker_free(cws_worker_s **workers, size_t workers_num);
void *cws_worker_loop(void *arg);
void cws_server_close_client(int epfd, int client_fd);
cws_server_ret cws_server_handle_client_data(int epfd, int client_fd);
#endif