78 static network_throttle obj_get_global_throttle_in(
"in/all",
"<<< global-IN",10);
79 return obj_get_global_throttle_in;
85 static network_throttle obj_get_global_throttle_inreq(
"inreq/all",
"<== global-IN-REQ",10);
86 return obj_get_global_throttle_inreq;
91 static network_throttle obj_get_global_throttle_out(
"out/all",
">>> global-OUT",10);
92 return obj_get_global_throttle_out;
99 : m_in(
"in/"+name1, name1+
"-DOWNLOAD"), m_inreq(
"inreq/"+name1, name1+
"-DOWNLOAD-REQUESTS"), m_out(
"out/"+name1, name1+
"-UPLOAD")
static i_network_throttle & get_global_throttle_in()
singleton ; for friend class ; caller MUST use proper locks! like m_lock_get_global_throttle_in ...
static boost::mutex m_lock_get_global_throttle_out
network_throttle_bw(const std::string &name1)
static boost::mutex m_lock_get_global_throttle_in
static i_network_throttle & get_global_throttle_inreq()
ditto ; use lock ... use m_lock_get_global_throttle_inreq obviously
static boost::mutex m_lock_get_global_throttle_inreq
static i_network_throttle & get_global_throttle_out()
ditto ; use lock ... use m_lock_get_global_throttle_out obviously
implementaion for throttling of connection (count and rate-limit speed etc)