mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-11 07:28:47 +02:00
「🗑️」 clean(client.cpp): cleaned files
This commit is contained in:
@ -1,20 +0,0 @@
|
|||||||
/* ************************************************************************** */
|
|
||||||
/* */
|
|
||||||
/* ::: :::::::: */
|
|
||||||
/* Client.cpp :+: :+: :+: */
|
|
||||||
/* +:+ +:+ +:+ */
|
|
||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
|
||||||
/* +#+#+#+#+#+ +#+ */
|
|
||||||
/* Created: 2025/04/15 14:44:55 by adjoly #+# #+# */
|
|
||||||
/* Updated: 2025/04/15 18:38:42 by adjoly ### ########.fr */
|
|
||||||
/* */
|
|
||||||
/* ************************************************************************** */
|
|
||||||
|
|
||||||
#include <config/default.hpp>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <server/Client.hpp>
|
|
||||||
|
|
||||||
Client::Client(int fd, sockaddr_in sockData, config::Config *conf)
|
|
||||||
: _fd(fd), _client_addr(sockData) {
|
|
||||||
|
|
||||||
}
|
|
@ -6,7 +6,7 @@
|
|||||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/04/17 11:12:41 by mmoussou #+# #+# */
|
/* Created: 2025/04/17 11:12:41 by mmoussou #+# #+# */
|
||||||
/* Updated: 2025/04/17 13:10:37 by mmoussou ### ########.fr */
|
/* Updated: 2025/04/17 14:25:50 by mmoussou ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -14,31 +14,8 @@
|
|||||||
|
|
||||||
using namespace server;
|
using namespace server;
|
||||||
|
|
||||||
/*class Client {
|
Client::Client(int fd, sockaddr_in socket, config::Servr *conf, Logger *log): _fd(fd), _client_addr(socker), _conf(conf), _log(log)
|
||||||
public:
|
|
||||||
Client(int, sockaddr_in, config::Config *);
|
|
||||||
~Client(void);
|
|
||||||
|
|
||||||
void answer(void);
|
|
||||||
|
|
||||||
private:
|
|
||||||
void getRequest(void);
|
|
||||||
|
|
||||||
int _fd;
|
|
||||||
struct sockaddr_in _client_addr;
|
|
||||||
http::IRequest *_request;
|
|
||||||
http::Response *_response;
|
|
||||||
config::Server *_conf;
|
|
||||||
std::string _request_method;
|
|
||||||
};*/
|
|
||||||
|
|
||||||
Client::Client(int fd, sockaddr_in socket, config::Servr *conf, Logger *log)
|
|
||||||
{
|
{
|
||||||
this->_fd = fd;
|
|
||||||
this->_client_addr = socket;
|
|
||||||
this->_conf = conf;
|
|
||||||
this->_log = log;
|
|
||||||
|
|
||||||
std::string received_data;
|
std::string received_data;
|
||||||
char buffer[BUFFER_SIZE];
|
char buffer[BUFFER_SIZE];
|
||||||
ssize_t bytes_received;
|
ssize_t bytes_received;
|
||||||
|
Reference in New Issue
Block a user