Revision 4ca3a6bd

View differences:

streamer.c
56 56

  
57 57
extern int NEIGHBORHOOD_TARGET_SIZE;
58 58
extern uint64_t CB_SIZE_TIME;
59
extern double desired_rtt;
60
extern double alpha_target;
59 61

  
60 62
#ifndef MONL
61 63
extern struct timeval print_tdiff;
......
90 92
    "\t[-n options]: pass configuration options to the net-helper\n"
91 93
    "\t[--chunk_log]: print a chunk level log on stderr\n"
92 94
    "\t[-F config]: configure the output module\n"
95
    "\t[-a alpha]: set the topology alpha value (from 0 to 100)\n"
96
    "\t[-t rtt]: set the RTT threshold (in ms) for desired neighbours\n"
93 97
    "\n"
94 98
    "Special Source Peer options\n"
95 99
    "\t[-m chunks]: set the number of copies the source injects in the overlay.\n"
......
132 136
	{0, 0, 0, 0}
133 137
  };
134 138

  
135
    while ((o = getopt_long (argc, argv, "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
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
136 140
    switch(o) {
137 141
      case 0: //for long options
138 142
        if( strcmp( "chunk_log", long_options[option_index].name ) == 0 ) { chunk_log = true; }
......
143 147
        if( strcmp( "playout_limit", long_options[option_index].name ) == 0 ) { CB_SIZE_TIME = atoi(optarg); }
144 148
        if( strcmp( "randomize_start", long_options[option_index].name ) == 0 ) { randomize_start = atoi(optarg); }
145 149
        break;
150
      case 'a':
151
        alpha_target = (double)atoi(optarg) / 100.0;
152
        break;
153
      case 'r':
154
        desired_rtt = (double)atoi(optarg) / 1000.0;
155
        break;
146 156
      case 'b':
147 157
        buff_size = atoi(optarg);
148 158
        break;

Also available in: Unified diff