Revision a2fa286f streamer.c
streamer.c | ||
---|---|---|
53 | 53 |
unsigned char msgTypes[] = {MSG_TYPE_CHUNK,MSG_TYPE_SIGNALLING}; |
54 | 54 |
bool chunk_log = false; |
55 | 55 |
static int randomize_start = 0; |
56 |
int start_id = -1; |
|
57 |
int end_id = -1; |
|
58 |
int initial_id = -1; |
|
56 | 59 |
|
57 | 60 |
extern int NEIGHBORHOOD_TARGET_SIZE; |
58 | 61 |
extern uint64_t CB_SIZE_TIME; |
... | ... | |
99 | 102 |
"\t[-m chunks]: set the number of copies the source injects in the overlay.\n" |
100 | 103 |
"\t[-f filename]: name of the video stream file to transmit.\n" |
101 | 104 |
"\t[-l]: loop the video stream.\n" |
105 |
"\t[-S]: set initial chunk_id (source only).\n" |
|
106 |
"\t[-s]: set start_id from which to start output.\n" |
|
107 |
"\t[-e]: set end_id at which to end output.\n" |
|
102 | 108 |
"\n" |
103 | 109 |
"Special options\n" |
104 | 110 |
"\t[--randomize_start ms]: random wait before starting in to ms millisecs.\n" |
... | ... | |
136 | 142 |
{0, 0, 0, 0} |
137 | 143 |
}; |
138 | 144 |
|
139 |
while ((o = getopt_long (argc, argv, "r:a:b:o:c:p:i:P:I:f:F:m:lC:N:n:M:t:",long_options, &option_index)) != -1) { //use this function to manage long options |
|
145 |
while ((o = getopt_long (argc, argv, "r:a:b:o:c:p:i:P:I:f:F:m:lC:N:n:M:t:s:e:S:",long_options, &option_index)) != -1) { //use this function to manage long options
|
|
140 | 146 |
switch(o) { |
141 | 147 |
case 0: //for long options |
142 | 148 |
if( strcmp( "chunk_log", long_options[option_index].name ) == 0 ) { chunk_log = true; } |
... | ... | |
201 | 207 |
case 't': |
202 | 208 |
topo_config = strdup(optarg); |
203 | 209 |
break; |
210 |
case 'S': |
|
211 |
initial_id = atoi(optarg); |
|
212 |
break; |
|
213 |
case 's': |
|
214 |
start_id = atoi(optarg); |
|
215 |
break; |
|
216 |
case 'e': |
|
217 |
end_id = atoi(optarg); |
|
218 |
break; |
|
204 | 219 |
default: |
205 | 220 |
fprintf(stderr, "Error: unknown option %c\n", o); |
206 | 221 |
print_usage(argc, argv); |
Also available in: Unified diff