From 8e6aa84fe8a01bcd49908d78e3310a6697b6294b Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Tue, 13 Feb 2007 23:26:45 +0100 Subject: [PATCH] Add support for adjusting the number of receiver threads. --- jam.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jam.c b/jam.c index 3156ba8..d0c7923 100644 --- a/jam.c +++ b/jam.c @@ -42,6 +42,7 @@ const static struct option longopts[] = { { "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 } @@ -119,7 +120,7 @@ void parse_options(int argc, char **argv) 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); @@ -130,6 +131,9 @@ void parse_options(int argc, char **argv) case 'n': num_senders = atoi(optarg); break; + case 'r': + num_receivers = atoi(optarg); + break; case 'N': num_sockets_per_sender = atoi(optarg); break; -- 2.39.2