Revision f6e9f400 streamer.c
streamer.c | ||
---|---|---|
72 | 72 |
extern double topo_mem; |
73 | 73 |
extern bool topo_out; |
74 | 74 |
extern bool topo_in; |
75 |
extern bool topo_keep_best; |
|
76 |
extern bool topo_add_best; |
|
75 | 77 |
|
76 | 78 |
#ifndef MONL |
77 | 79 |
extern struct timeval print_tdiff; |
... | ... | |
113 | 115 |
"\t[--topo_out]: peers only choose out-neighbours\n" |
114 | 116 |
"\t[--topo_in]: peers only choose in-neighbours\n" |
115 | 117 |
"\t[--topo_bidir]: peers choose both in- and out-neighbours (bidir)\n" |
118 |
"\t[--topo_keep_best]: keep best peers, not random subset\n" |
|
119 |
"\t[--topo_add_best]: add best peers among desired ones, not random subset\n" |
|
116 | 120 |
"\n" |
117 | 121 |
"Special Source Peer options\n" |
118 | 122 |
"\t[-m chunks]: set the number of copies the source injects in the overlay.\n" |
... | ... | |
190 | 194 |
{"topo_in", no_argument, 0, 0}, |
191 | 195 |
{"topo_out", no_argument, 0, 0}, |
192 | 196 |
{"topo_bidir", no_argument, 0, 0}, |
197 |
{"topo_keep_best", no_argument, 0, 0}, |
|
198 |
{"topo_add_best", no_argument, 0, 0}, |
|
193 | 199 |
{0, 0, 0, 0} |
194 | 200 |
}; |
195 | 201 |
|
... | ... | |
209 | 215 |
else if( strcmp( "topo_in", long_options[option_index].name ) == 0 ) { topo_in = true; topo_out = false; } |
210 | 216 |
else if( strcmp( "topo_out", long_options[option_index].name ) == 0 ) { topo_in = false; topo_out = true; } |
211 | 217 |
else if( strcmp( "topo_bidir", long_options[option_index].name ) == 0 ) { topo_in = true; topo_out = true; } |
218 |
else if( strcmp( "topo_keep_best", long_options[option_index].name ) == 0 ) { topo_keep_best = true; } |
|
219 |
else if( strcmp( "topo_add_best", long_options[option_index].name ) == 0 ) { topo_add_best = true; } |
|
212 | 220 |
break; |
213 | 221 |
case 'a': |
214 | 222 |
alpha_target = (double)atoi(optarg) / 100.0; |
Also available in: Unified diff