handle some special cases (disconnect during some moments) and fix "bind adress already in use" error

This commit is contained in:
2025-03-18 14:11:37 +01:00
parent 0103c22882
commit 8f60baded0
9 changed files with 62 additions and 24 deletions

View File

@ -6,7 +6,7 @@
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/20 18:25:18 by tomoron #+# #+# */
/* Updated: 2025/03/17 18:05:15 by tomoron ### ########.fr */
/* Updated: 2025/03/18 12:56:01 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -75,7 +75,6 @@ class Clusterizer
std::string _sceneName;
Renderer *_renderer;
std::vector<t_job *> _jobs[3];
void imguiJobStat(void);
void imguiClients(void);
@ -124,4 +123,6 @@ class Clusterizer
struct pollfd *_pollfds;
std::map<int, t_client> _clients;
size_t _curFrame;
std::vector<t_job *> _jobs[3];
};

View File

@ -6,7 +6,7 @@
/* By: ycontre <ycontre@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/23 18:30:18 by ycontre #+# #+# */
/* Updated: 2025/03/17 15:26:14 by tomoron ### ########.fr */
/* Updated: 2025/03/18 13:37:23 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -139,7 +139,7 @@ class Scene
Camera *getCamera(void) const;
GPUMaterial getMaterial(int material_index);
bool fail(void) const;
bool error(void) const;
void changeScene(std::string &name, std::vector<Buffer *> &buffers);
@ -148,7 +148,7 @@ class Scene
private:
void init(std::string &name);
bool _fail;
bool _error;
std::vector<GPUBvhData> _gpu_bvh_data;
std::vector<GPUBvh> _gpu_bvh;