mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 12:58:00 +03:00
refactor: delete_fd and rename free_fd
This commit is contained in:
@@ -54,8 +54,11 @@ class Server
|
||||
struct timeval last_modif;
|
||||
}t_tmp_fd;
|
||||
bool TimeToDie(struct timeval &last_modif, int lifeTime);
|
||||
int delete_fd(std::map<int, t_tmp_fd *> &map, std::map<int, t_tmp_fd *>::iterator &it);
|
||||
std::map<int, t_tmp_fd *> free_socket;
|
||||
int delete_fd(std::map<int, t_tmp_fd *> &map,
|
||||
std::map<int, t_tmp_fd *>::iterator &it,
|
||||
std::map<int, Client *> &client_map);
|
||||
|
||||
std::map<int, t_tmp_fd *> vacant_fds;
|
||||
|
||||
public:
|
||||
Server();
|
||||
|
||||
Reference in New Issue
Block a user