still working on integrating the config file stuff

This commit is contained in:
Me
2022-07-25 21:00:04 +02:00
parent b9ccf09089
commit 35ac55b5e8
9 changed files with 142 additions and 36 deletions

View File

@@ -28,11 +28,20 @@
#define MSG_TEST "Le Webserv / 20 =D\n"
#define MSG_BOUNCE "bounced properly ;)\n" // placeholder
// these might only be TMP
# define FAILURE -1
# define SUCCESS 1
class Webserv
{
public:
Webserv();
// Webserv(Webserv const &src);
// what should it take as arg, *, &, ?
Webserv(std::vector<ServerConfig>& servers);
~Webserv();
// Webserv &operator=(Webserv const &rhs);
@@ -41,7 +50,9 @@ class Webserv
private:
int _socket_fd; // TODO: replace with vector of "Server" struct
std::vector<ServerConfig> _servers;
std::vector<ServerConfig> _servers; // should these be const?
int _epfd;
// WIP global buffer. Need one variable set per "Client"