diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2018-02-04 12:47:09 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2018-02-04 12:47:09 +0100 |
| commit | 21474893efe0ab38461c3d08727c7c778caa9323 (patch) | |
| tree | 8d48ec3353c84155dcf7daf67d8ade1dd1fd480d /node/main.cpp | |
| parent | 126021b3766e6fb33333b7939d78dadd1c632eb4 (diff) | |
| download | cmix-21474893efe0ab38461c3d08727c7c778caa9323.tar.gz cmix-21474893efe0ab38461c3d08727c7c778caa9323.tar.bz2 cmix-21474893efe0ab38461c3d08727c7c778caa9323.zip | |
Both algorithms are now batchable.
Diffstat (limited to 'node/main.cpp')
| -rw-r--r-- | node/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/node/main.cpp b/node/main.cpp index 1e76a1f..e50e997 100644 --- a/node/main.cpp +++ b/node/main.cpp @@ -29,6 +29,7 @@ int main(int argc, char* argv[]) { ("certdir", po::value<std::string>(), "Directory containing trusted certificates.") ("statsd,s", po::value<std::string>(), "The address of the statistics daemon.") ("name,a", po::value<std::string>(), "The name to use in the stats daemon file") + ("nr_mixes,x", po::value<unsigned int>()->default_value(1), "The number of simultanous mixes the network will perform.") ; po::variables_map vm; @@ -126,7 +127,9 @@ int main(int argc, char* argv[]) { Uri uri = parse_uri(next_node); - NodeNetworkSettings nsettings{is_first, is_last, uri.host, uri.port, certdir, minimum_nr_messages}; + unsigned int nr_mixes = vm["nr_mixes"].as<unsigned int>(); + + NodeNetworkSettings nsettings{is_first, is_last, uri.host, uri.port, certdir, minimum_nr_messages, nr_mixes}; bool run_stats = vm.count("statsd"); |
