Revision 90f3a290

View differences:

streamer.c
90 90

  
91 91
  while ((o = getopt(argc, argv, "b:o:c:t:p:i:P:I:f:m:lC:")) != -1) {
92 92
    switch(o) {
93
      case 'b':// Chunk Buffer size, which is also the window of chunks we may exchange.
93
      case 'b':
94 94
        buff_size = atoi(optarg);
95 95
        break;
96
      case 'o':// Buffer size of the output buffer.
96
      case 'o':
97 97
        outbuff_size = atoi(optarg);
98 98
        break;
99
        case 'c'://number of chunks per second: how aggressive is the peer.
99
        case 'c':
100 100
        chunks_per_second = atoi(optarg);
101 101
        break;
102
      case 'm'://number of chunks the source may push in parallel
102
      case 'm':
103 103
        multiply = atoi(optarg);
104 104
        break;
105
      case 't'://chunk emission period
105
      case 't':
106 106
        period = atoi(optarg);
107 107
        break;
108
      case 'p'://remote port to connect
108
      case 'p':
109 109
        srv_port = atoi(optarg);
110 110
        break;
111
      case 'i'://remote IP address to contact
111
      case 'i':
112 112
        srv_ip = strdup(optarg);
113 113
        break;
114
      case 'P'://current port to connect
114
      case 'P':
115 115
        port =  atoi(optarg);
116 116
        break;
117
      case 'I'://current IP address to use
117
      case 'I':
118 118
        my_iface = strdup(optarg);
119 119
        break;
120
      case 'f'://name of the video stream to reproduce
120
      case 'f':
121 121
        fname = strdup(optarg);
122 122
        break;
123
      case 'l'://loop on the video stream
123
      case 'l':
124 124
        loop_input = true;
125 125
        break;
126
      case 'C'://set the name of the channel.
126
      case 'C':
127 127
        channel_set_name(optarg);
128 128
        break;
129 129
      default:

Also available in: Unified diff