/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* AResource.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: mmoussou #include namespace webserv { namespace server { enum clientResType { CGI, UP_FILE }; class AClientResource { public: virtual ~AClientResource() {} bool operator==(int i) const { if (i == _res_id) return true; return false; } void setFileDescriptor(struct pollfd *fd) { _fd = fd; } struct pollfd getFileDescriptor(void) const { return *_fd; } virtual clientResType type(void) const ; int getId(void) const { return _res_id; } protected: struct pollfd *_fd; int _res_id; }; } // namespace server } // namespace webserv