mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 23:48:46 +02:00
「🏗️」 wip: added default _toclose in client not used for now
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/04/14 14:14:39 by adjoly #+# #+# */
|
/* 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() {
|
bool isToClose() {
|
||||||
return toClose;
|
return _toClose;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void _getRequest(std::string);
|
void _getRequest(std::string);
|
||||||
|
|
||||||
bool toClose;
|
bool _toClose;
|
||||||
struct pollfd *_pfd;
|
struct pollfd *_pfd;
|
||||||
struct sockaddr_in _client_addr;
|
struct sockaddr_in _client_addr;
|
||||||
http::IRequest *_request;
|
http::IRequest *_request;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/04/17 11:12:41 by mmoussou #+# #+# */
|
/* 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;
|
using namespace webserv::server;
|
||||||
|
|
||||||
Client::Client(struct pollfd *pfd, sockaddr_in socket, config::Config *conf)
|
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");
|
log("➕", "Client", "constructor called");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user