mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 17:48:46 +02:00
「🔨」 fix: fixed leak
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/04/14 14:14:39 by adjoly #+# #+# */
|
||||
/* Updated: 2025/04/25 15:28:10 by adjoly ### ########.fr */
|
||||
/* Updated: 2025/04/25 17:03:34 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -24,9 +24,10 @@ namespace server {
|
||||
class Client {
|
||||
public:
|
||||
Client(struct pollfd *, sockaddr_in, config::Config *);
|
||||
void parse(void);
|
||||
Client(const Client &cpy);
|
||||
virtual ~Client(void);
|
||||
|
||||
void parse(void);
|
||||
void answer(void);
|
||||
|
||||
struct pollfd *getPollfd(void) const { return _pfd; }
|
||||
@ -37,14 +38,9 @@ class Client {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool isToClose() {
|
||||
return _toClose;
|
||||
}
|
||||
|
||||
private:
|
||||
void _getRequest(std::string);
|
||||
|
||||
bool _toClose;
|
||||
struct pollfd *_pfd;
|
||||
struct sockaddr_in _client_addr;
|
||||
http::IRequest *_request;
|
||||
|
Reference in New Issue
Block a user