🏗️」 wip: Added proto for Client class

This commit is contained in:
2025-04-14 15:05:26 +02:00
parent 42ab0cfc97
commit 2004386c8d
4 changed files with 39 additions and 4 deletions

View File

@ -0,0 +1,33 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Client.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/14 14:14:39 by adjoly #+# #+# */
/* Updated: 2025/04/14 15:00:41 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#pragma once
#include "config/default.hpp"
#include "default.hpp"
#include "requests/default.hpp"
#include <netinet/in.h>
#include <webserv.hpp>
class Client {
public:
Client(int, sockaddr_in);
~Client(void);
void answer(void);
private:
int _fd;
struct sockaddr_in _client_addr;
http::IRequest *_request;
http::Response *_response;
config::Config *_conf;
};