Something went wrong. Try again.
An HTTP server written in C++98 projects.intra.42.fr/projects/webserv
Something went wrong. Try again.
123456789101112131415161718192021222324252627#pragma once
#include "config/config.hpp"#include "Pollable.hpp"
#include <poll.h>#include <string>#include <vector>
class Server: public Pollable{ private: int _socket; Config const& _config;
void log(std::string message); public: Server(Config const& config); ~Server();
void receive(std::vector<Pollable*>& pollables); void disconnect();
int get_fd() const; Config const& get_config() const;};