ok, so we added a lot more checks for the config file, and some post processing, still needs a few more things, but now some defaults are set too, basically it works under most circumstances

This commit is contained in:
Me
2022-08-01 00:49:25 +02:00
parent 19f7493aac
commit 16af16084b
8 changed files with 245 additions and 135 deletions

View File

@@ -26,6 +26,8 @@
# include <cstdlib> // atoi (athough it's already cover by <string>)
# include <iostream> // cout, cin
# include <fstream> // ifstream
//# include <unistd.h> // access()
# include <dirent.h> // opendir()
class ConfigParser {
@@ -79,6 +81,12 @@ private:
// some sort of post processing...
void _post_processing(std::vector<ServerConfig> *servers);
};