summaryrefslogtreecommitdiff
path: root/server/server/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/server/config.h')
-rwxr-xr-xserver/server/config.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/server/server/config.h b/server/server/config.h
index ee8a9ee..86c3988 100755
--- a/server/server/config.h
+++ b/server/server/config.h
@@ -13,8 +13,9 @@ public:
{
std::string host, login, password, country, state, city;
int port;
+ size_t speed;
proxy_type type;
- proxy_entry(): port(0), type(UNKNOWN)
+ proxy_entry(): port(0), speed(0), type(UNKNOWN)
{}
proxy_entry (std::string login_, std::string password_, std::string host_, int port_, std::string country_, std::string state_, std::string city_, proxy_type t)
{
@@ -68,7 +69,7 @@ public:
struct static_proxy_entry
{
int port, position;
- uint64_t speed;
+ size_t speed;
std::string host, login, password, label;
proxy_type type;
static_proxy_entry(): port(0), position(0), speed(0), type(UNKNOWN)
@@ -222,7 +223,8 @@ private:
std::list<upload_entry> upload_list;
std::list<conn_server> servers_list;
std::list<p_proxy_entry> p_proxy_list;
- boost::thread *cfg_reload_thr;
+ boost::thread *cfg_reload_thr, *speed_test_thr;
+ boost::mutex lists_mutex;
};
#endif \ No newline at end of file