From 46f22621759d388f7cef4bf0d2ac03667a5d611e Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Mon, 7 Nov 2016 12:53:59 +0100 Subject: prepares the api for sending and mixing messages in the realtime phase. --- node/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'node/main.cpp') diff --git a/node/main.cpp b/node/main.cpp index 0c81312..28ef60c 100644 --- a/node/main.cpp +++ b/node/main.cpp @@ -21,6 +21,7 @@ int main(int argc, char* argv[]) { ("interface6,6", po::value()->default_value("::"), "Set the ipv6 address to listen on.") ("next_node,n", po::value(), "The address of the next node in the network.") ("first,f", "This is the first node and will be the communication point for the clients.") + ("last,f", "this is the last node and will be able to send the original message out of the network.") ("cert,c", po::value(), "The cert file to use (in pem format).") ("key,k", po::value(), "The key file (in pem format).") ("dhparam,d", po::value(), "The dhparam file.") @@ -92,6 +93,7 @@ int main(int argc, char* argv[]) { BOOST_LOG_TRIVIAL(info) << "Started node"; bool is_first = bool(vm.count("first")); + bool is_last = bool(vm.count("last")); std::string next_node; if(vm.count("next_node")) { next_node = vm["next_node"].as(); @@ -112,7 +114,7 @@ int main(int argc, char* argv[]) { Uri uri = parse_uri(next_node); - NodeNetworkSettings nsettings{is_first, uri.host, uri.port, certdir}; + NodeNetworkSettings nsettings{is_first, is_last, uri.host, uri.port, certdir}; Node node(lsettings, nsettings); node.run(); -- cgit v1.2.3-70-g09d2