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/swift/start_swift_seeder.sh &
74 clients/swift/start_swift_leecher.sh &
78 clients/xbt-unified-tracker/start_xbtut.sh &
88 DEBUG echo "stopping client ..."
89 case "${CLIENT_TYPE}" in
90 "hrktorrent_seeder" | "hrktorrent_leecher" | "hrktorrent_seeder_limit" | "hrktorrent_leecher_limit")
91 clients/hrk/stop_hrk.sh
94 clients/tribler/stop_tribler.sh
97 clients/tribler/stop_tribler.sh
100 clients/tribler/stop_tribler.sh
103 clients/tribler/stop_tribler.sh
106 clients/tribler/stop_tribler.sh
109 clients/tribler/stop_tribler.sh
112 clients/tribler/stop_tribler.sh
114 "swift_seeder" | "swift_leecher")
115 clients/swift/stop_swift.sh
118 clients/xbt-unified-tracker/stop_xbtut.sh
123 detect_complete_client()
128 DEBUG echo "stopping client ..."
129 case "${client_type}" in
130 "hrktorrent_seeder" | "hrktorrent_leecher" | "hrktorrent_seeder_limit" | "hrktorrent_leecher_limit")
131 clients/hrk/detect_complete_hrk.sh ${log_file}
134 clients/tribler/detect_complete_tribler_seeder.sh ${log_file}
137 clients/tribler/detect_complete_tribler_leecher.sh ${log_file}
140 clients/tribler/detect_complete_tribler_doe.sh ${log_file}
143 clients/tribler/detect_complete_tribler_proxy.sh ${log_file}
146 clients/tribler/detect_complete_tribler_proxy.sh ${log_file}
149 clients/tribler/detect_complete_tribler_proxy.sh ${log_file}
152 clients/tribler/detect_complete_tribler_proxy.sh ${log_file}
154 "swift_seeder" | "swift_leecher")
155 clients/swift/detect_complete_swift.sh ${log_file}
166 DEBUG echo "parsing client ${client_type} (${log_folder}/${log_file})..."
167 case "${client_type}" in
168 "hrktorrent_seeder" | "hrktorrent_leecher" | "hrktorrent_seeder_limit" | "hrktorrent_leecher_limit")
169 DEBUG echo "hello hrktorrent_seeder"
170 clients/hrk/parse_hrk.sh ${log_folder} ${log_file}
173 clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
176 clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
179 clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
182 clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
185 clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
188 clients/tribler/parse_tribler.sh ${log_folder} ${log_file}
191 clients/tribler/parse_tribler.sh ${log_folder} ${log_file}