From 3300dcd0579fe48acea714cf060197b9d3b74312 Mon Sep 17 00:00:00 2001 From: adjoly Date: Thu, 15 May 2025 11:04:49 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=8F=97=EF=B8=8F=E3=80=8D=20wip:?= =?UTF-8?q?=20started=20file=20up?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/server/AResource.hpp | 32 ++++++++--------- .../server/FileUpload.hpp | 35 +++++++++++-------- 2 files changed, 34 insertions(+), 33 deletions(-) rename src/server/AResource.cpp => includes/server/FileUpload.hpp (52%) diff --git a/includes/server/AResource.hpp b/includes/server/AResource.hpp index e3112f9..ed20fff 100644 --- a/includes/server/AResource.hpp +++ b/includes/server/AResource.hpp @@ -6,7 +6,7 @@ /* By: mmoussou +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ -/* Created: 2025/04/29 14:42:01 by mmoussou #+# #+# */ -/* Updated: 2025/04/29 15:45:19 by adjoly ### ########.fr */ +/* Created: 2025/05/13 18:14:45 by adjoly #+# #+# */ +/* Updated: 2025/05/13 18:56:25 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ -#include +#pragma once -using namespace webserv; -using namespace server; +#include "server/AResource.hpp" -void AClientResource::addFileDescriptor(struct pollfd fd) -{ - this->_fd = fd; -} +namespace webserv { +namespace server { +class FileUpload : public AClientResource { + public: + FileUpload(int id) { _res_id = id; } + ~FileUpload(void) {} -struct pollfd AClientResource::getFileDescriptor() -{ - return (this->_fd); -} + clientResType type(void) const { return UP_FILE; } + + protected: + private: +}; + +} // namespace server +} // namespace webserv