diff options
author | 2010-08-07 00:43:52 +0300 | |
---|---|---|
committer | 2010-08-07 00:43:52 +0300 | |
commit | fee59abeb820b08a41a47b94b5a370fc914e6d90 (patch) | |
tree | 9ee185f081c3088dc17e30ab998ad07b2f715a55 /segget/segment.cpp | |
parent | Use .o files instead of .cpp in tuiclient.h (diff) | |
download | idfetch-fee59abeb820b08a41a47b94b5a370fc914e6d90.tar.gz idfetch-fee59abeb820b08a41a47b94b5a370fc914e6d90.tar.bz2 idfetch-fee59abeb820b08a41a47b94b5a370fc914e6d90.zip |
Add WebUI support
[ui_server]
tuiclient monitors segget's activity by establishing tcp connection
with segget daemon (ui_server part of it).
Same ip and port are used for WebUI which can be accessed from web
browser via http://ui_ip:ui_port/
Diffstat (limited to 'segget/segment.cpp')
-rw-r--r-- | segget/segment.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/segget/segment.cpp b/segget/segment.cpp index 9389820..bfbdc5c 100644 --- a/segget/segment.cpp +++ b/segget/segment.cpp @@ -131,8 +131,12 @@ int Tsegment::add_easy_handle_to_multi(CURLM *cm, uint network_num){ } curl_easy_setopt(easyhandle, CURLOPT_LOW_SPEED_TIME, network_array[network_num].low_connection_speed_time); - if ((network_array[network_num].max_connection_speed!=0) and (network_array[network_num].max_connection_speed!=(ulong)-1)){ + if (connection_array[connection_num].max_speed_limit!=0){ curl_easy_setopt(easyhandle, CURLOPT_MAX_RECV_SPEED_LARGE, network_array[network_num].max_connection_speed); + }else{ + if ((network_array[network_num].max_connection_speed!=0) and (network_array[network_num].max_connection_speed!=(ulong)-1)){ + curl_easy_setopt(easyhandle, CURLOPT_MAX_RECV_SPEED_LARGE, network_array[network_num].max_connection_speed); + } } curl_easy_setopt(easyhandle, CURLOPT_USERAGENT, network_array[network_num].user_agent.c_str()); |