diff options
Diffstat (limited to 'server/server/config.h')
-rw-r--r-- | server/server/config.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/server/server/config.h b/server/server/config.h index 7554857..12ff54b 100644 --- a/server/server/config.h +++ b/server/server/config.h @@ -3,6 +3,31 @@ #include "headers.h" + +struct proxy_entry +{ + std::string host, login, password, country, state, city; + int port; + proxy_entry(): port(0) + {} + proxy_entry (std::string login_, std::string password_, std::string host_, int port_, std::string country_, std::string state_, std::string city_) + { + login = login_; + password = password_; + host = host_; + port = port; + country = country_; + state = state_; + city = city_; + } +}; + +struct static_proxy_entry +{ + int port, position; + std::string host, login, password, label; +}; + class config { public: @@ -33,7 +58,11 @@ private: }; const int get_int(const std::string& data, const char* var, int default_); const std::string get_string(const std::string& data, const char* var, const std::string& default_); + void load_proxy_list(char* pth = NULL); + void load_static_proxy_list(char* pth = NULL); cfg_data vars; + std::list<proxy_entry> proxy_list; + std::list<static_proxy_entry> static_proxy_list; }; #endif
\ No newline at end of file |