🏗️」 wip(Client): taking pollfd and not just fd in argument

This commit is contained in:
y-syo
2025-04-25 12:44:45 +02:00
parent a77f44579f
commit 9d0a08650f
3 changed files with 15 additions and 15 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:32:29 by mmoussou ### ########.fr */
/* Updated: 2025/04/25 12:43:54 by mmoussou ### ########.fr */
/* */
/* ************************************************************************** */
@ -24,8 +24,8 @@ namespace server {
class Client {
public:
Client();
Client(int, sockaddr_in, config::Config *);
void parse(int, sockaddr_in, config::Config *);
Client(struct pollfd, sockaddr_in, config::Config *);
void parse(struct pollfd, sockaddr_in, config::Config *);
virtual ~Client(void);
void answer(void);
@ -33,7 +33,7 @@ class Client {
private:
void _getRequest(std::string);
int _fd;
struct pollfd _fd;
struct sockaddr_in _client_addr;
http::IRequest *_request;
//http::Response *_response;