mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 19:18:46 +02:00
「🏗️」 wip(Client): taking pollfd and not just fd in argument
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 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;
|
||||
|
Reference in New Issue
Block a user