mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 18:08:46 +02:00
「✨」 feat(server/client): added Client class :D
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/14 15:00:41 by adjoly ### ########.fr */
|
||||
/* Updated: 2025/04/17 12:46:04 by mmoussou ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -18,16 +18,26 @@
|
||||
#include <netinet/in.h>
|
||||
#include <webserv.hpp>
|
||||
|
||||
namespace webserv {
|
||||
namespace server {
|
||||
|
||||
class Client {
|
||||
public:
|
||||
Client(int, sockaddr_in);
|
||||
Client(int, sockaddr_in, config::Config *);
|
||||
~Client(void);
|
||||
|
||||
void answer(void);
|
||||
|
||||
private:
|
||||
void _getRequest(std::string);
|
||||
|
||||
int _fd;
|
||||
struct sockaddr_in _client_addr;
|
||||
http::IRequest *_request;
|
||||
http::Response *_response;
|
||||
config::Config *_conf;
|
||||
config::Server *_conf;
|
||||
Logger *_log;
|
||||
};
|
||||
|
||||
} // -namespace server
|
||||
} // -namespace webserv
|
||||
|
Reference in New Issue
Block a user