{ "destination-list", required_argument, NULL, 'd' },
{ "num-senders", required_argument, NULL, 'n' },
{ "num-sockets-per-sender", required_argument, NULL, 'N' },
+ { "num-receivers", required_argument, NULL, 'r' },
{ "port", required_argument, NULL, 'p' },
{ "sender-only", no_argument, NULL, 'o' },
{ NULL, 0, NULL, 0 }
int option_index = 0;
for ( ;; ) {
- int c = getopt_long(argc, argv, "s:d:n:N:p:o", longopts, &option_index);
+ int c = getopt_long(argc, argv, "s:d:n:N:r:p:o", longopts, &option_index);
switch (c) {
case 's':
read_ip_list(optarg, &sources, &num_sources, &room_sources);
case 'n':
num_senders = atoi(optarg);
break;
+ case 'r':
+ num_receivers = atoi(optarg);
+ break;
case 'N':
num_sockets_per_sender = atoi(optarg);
break;