From 8065e1bf2229294fea502226962bd66d37ff81ce Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Thu, 22 Sep 2016 16:11:39 +0200 Subject: Some changes to the network-handler. --- network-handler/main.cpp | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'network-handler/main.cpp') diff --git a/network-handler/main.cpp b/network-handler/main.cpp index c8cae05..84de894 100644 --- a/network-handler/main.cpp +++ b/network-handler/main.cpp @@ -15,12 +15,13 @@ int main(int argc, char* argv[]) { po::options_description desc("Allowed options"); desc.add_options() - ("help,h", "produce help message") - ("port,p", po::value()->default_value(9200), "Set listening port") - ("enable_v4", po::value()->default_value(true), "Enable/disable ipv4 accept support") + ("help,h", "produce help message.") + ("port,p", po::value()->default_value(9200), "Set listening port.") + ("enable_v4", po::value()->default_value(true), "Enable/disable ipv4 accept support.") ("interface4,4", po::value()->default_value("0.0.0.0"), "Set the ipv4 address to listen on.") - ("enable_v6", po::value()->default_value(true), "Enable/disable ipv6 accept support") - ("interface6,6", po::value()->default_value("::"), "Set the ipv6 address to listen on") + ("enable_v6", po::value()->default_value(true), "Enable/disable ipv6 accept support.") + ("interface6,6", po::value()->default_value("::"), "Set the ipv6 address to listen on.") + ("nodes,n", po::value(), "Set the node addreses to use in the cmix network.") ; po::variables_map vm; @@ -38,7 +39,7 @@ int main(int argc, char* argv[]) { std::string if6 = vm["interface6"].as(); uint16_t port = vm["port"].as(); - NodeManager node_manager = key_exchange_phase(); + NodeManager node_manager({}); ListenSettings lsettings{en4, if4, en6, if6, port}; @@ -46,9 +47,3 @@ int main(int argc, char* argv[]) { handler.run(); } -NodeManager key_exchange_phase() { - NodeManager manager; - - return manager; -} - -- cgit v1.2.3-70-g09d2