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