The Config Parser looks a lot better, cleaner, made a lot of decisions and added i think everything to the apropriate header files, now working on testing but since new install of Ubuntu testing make on something i expect is working, the main branch, so brb

This commit is contained in:
Me
2022-07-29 22:17:10 +02:00
parent 846c478142
commit 3ff62f5ddc
5 changed files with 152 additions and 91 deletions

View File

@@ -17,11 +17,19 @@ int main(int ac, char **av)
// is there a better way?
ConfigParser configParser(config.c_str());
Webserv serv(configParser.parse());
configParser._print_content();
std::vector<ServerConfig> servers = configParser.parse();
for (int i = 0; i < server.size(); i++)
servers[i].print_all();
// Webserv serv(configParser.parse());
// is this better or worse than using
serv.init_virtual_servers();
serv.start();
// serv.init_virtual_servers();
// serv.start();
}
catch (std::exception& e)
{