4 # Configuration file for mapping client (string) identifiers to
5 # start/stop/detect scripts
10 test ${_DEBUG} = "on" && $@
16 local download_limit=$2
18 local connection_limit=$4
20 download_limit=$(($download_limit * 1024 / 8))
21 upload_limit=$(($upload_limit * 1024 / 8))
23 DEBUG echo "starting client ..."
24 case "${client_type}" in
26 clients/hrk/start_hrk_seeder.sh &
30 clients/hrk/start_hrk_leecher.sh &
33 "hrktorrent_seeder_limit")
34 clients/hrk/start_hrk_seeder_limit.sh ${download_limit} ${upload_limit} ${connection_limit} &
37 "hrktorrent_leecher_limit")
38 clients/hrk/start_hrk_leecher_limit.sh ${download_limit} ${upload_limit} ${connection_limit} &
42 clients/tribler/start_tribler_seeder.sh &
46 clients/tribler/start_tribler_leecher.sh &
50 clients/tribler/start_tribler_doe.sh &
54 clients/tribler/start_tribler_proxy.sh 01 &
58 clients/tribler/start_tribler_proxy.sh 02 &
62 clients/tribler/start_tribler_proxy.sh 03 &
66 clients/tribler/start_tribler_proxy.sh 04 &
70 clients/xbt-unified-tracker/start_xbtut.sh &
80 DEBUG echo "stopping client ..."
81 case "${CLIENT_TYPE}" in
82 "hrktorrent_seeder" | "hrktorrent_leecher" | "hrktorrent_seeder_limit" | "hrktorrent_leecher_limit")
83 clients/hrk/stop_hrk.sh
86 clients/tribler/stop_tribler.sh
89 clients/tribler/stop_tribler.sh
92 clients/tribler/stop_tribler.sh
95 clients/tribler/stop_tribler.sh
98 clients/tribler/stop_tribler.sh
101 clients/tribler/stop_tribler.sh
104 clients/tribler/stop_tribler.sh
107 clients/xbt-unified-tracker/stop_xbtut.sh
112 detect_complete_client()
117 DEBUG echo "stopping client ..."
118 case "${client_type}" in
119 "hrktorrent_seeder" | "hrktorrent_leecher" | "hrktorrent_seeder_limit" | "hrktorrent_leecher_limit")
120 clients/hrk/detect_complete_hrk.sh ${log_file}
123 clients/tribler/detect_complete_tribler_seeder.sh ${log_file}
126 clients/tribler/detect_complete_tribler_leecher.sh ${log_file}
129 clients/tribler/detect_complete_tribler_doe.sh ${log_file}
132 clients/tribler/detect_complete_tribler_proxy.sh ${log_file}
135 clients/tribler/detect_complete_tribler_proxy.sh ${log_file}
138 clients/tribler/detect_complete_tribler_proxy.sh ${log_file}
141 clients/tribler/detect_complete_tribler_proxy.sh ${log_file}
152 DEBUG echo "parsing client ${client_type} (${log_folder}/${log_file})..."
153 case "${client_type}" in
154 "hrktorrent_seeder" | "hrktorrent_leecher" | "hrktorrent_seeder_limit" | "hrktorrent_leecher_limit")
155 DEBUG echo "hello hrktorrent_seeder"
156 clients/hrk/parse_hrk.sh ${log_folder} ${log_file}
159 clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
162 clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
165 clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
168 clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
171 clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
174 clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
177 clients/tribler/parse_tribler.sh ${log_folder} ${log_file}