refactor: delete_fd and rename free_fd

This commit is contained in:
3lswear
2022-02-24 21:45:06 +03:00
parent 6ce3b81f6a
commit 434e75bb47

View File

@@ -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();