refactor: simplify file name
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user