🏗️」 wip: added default _toclose in client not used for now

This commit is contained in:
2025-04-25 15:34:10 +02:00
parent 6a1bcaad05
commit 5ce135594b
2 changed files with 5 additions and 5 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 15:15:48 by adjoly ### ########.fr */
/* Updated: 2025/04/25 15:28:10 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -38,13 +38,13 @@ class Client {
}
bool isToClose() {
return toClose;
return _toClose;
}
private:
void _getRequest(std::string);
bool toClose;
bool _toClose;
struct pollfd *_pfd;
struct sockaddr_in _client_addr;
http::IRequest *_request;

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/17 11:12:41 by mmoussou #+# #+# */
/* Updated: 2025/04/25 15:19:43 by adjoly ### ########.fr */
/* Updated: 2025/04/25 15:28:08 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -17,7 +17,7 @@
using namespace webserv::server;
Client::Client(struct pollfd *pfd, sockaddr_in socket, config::Config *conf)
: _pfd(pfd), _client_addr(socket), _Gconf(conf) {
: _toClose(false), _pfd(pfd), _client_addr(socket), _Gconf(conf) {
log("", "Client", "constructor called");
}