🏗️」 wip: change mainloop to work has expected

This commit is contained in:
2025-04-25 13:27:46 +02:00
parent d15e9061d3
commit 8d4ef4095a
7 changed files with 49 additions and 77 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/14 14:14:39 by adjoly #+# #+# */
/* Updated: 2025/04/25 12:43:54 by mmoussou ### ########.fr */
/* Updated: 2025/04/25 13:20:13 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -24,8 +24,8 @@ namespace server {
class Client {
public:
Client();
Client(struct pollfd, sockaddr_in, config::Config *);
void parse(struct pollfd, sockaddr_in, config::Config *);
Client(struct pollfd *, sockaddr_in, config::Config *);
void parse(void);
virtual ~Client(void);
void answer(void);
@ -33,11 +33,12 @@ class Client {
private:
void _getRequest(std::string);
struct pollfd _fd;
struct pollfd *_pfd;
struct sockaddr_in _client_addr;
http::IRequest *_request;
//http::Response *_response;
config::Server *_conf;
// http::Response *_response;
config::Server *_conf;
config::Config *_Gconf;
};
} // namespace server