diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-09-22 16:11:39 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-09-22 16:11:39 +0200 |
| commit | 8065e1bf2229294fea502226962bd66d37ff81ce (patch) | |
| tree | 65f36f295ad3b3dd81e7a6ef074e427980215863 /network-handler/main.cpp | |
| parent | 492b2d1b9988607239c33c3c559870e90fbe66c3 (diff) | |
| download | cmix-8065e1bf2229294fea502226962bd66d37ff81ce.tar.gz cmix-8065e1bf2229294fea502226962bd66d37ff81ce.tar.bz2 cmix-8065e1bf2229294fea502226962bd66d37ff81ce.zip | |
Some changes to the network-handler.
Diffstat (limited to 'network-handler/main.cpp')
| -rw-r--r-- | network-handler/main.cpp | 19 |
1 files changed, 7 insertions, 12 deletions
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<uint16_t>()->default_value(9200), "Set listening port") - ("enable_v4", po::value<bool>()->default_value(true), "Enable/disable ipv4 accept support") + ("help,h", "produce help message.") + ("port,p", po::value<uint16_t>()->default_value(9200), "Set listening port.") + ("enable_v4", po::value<bool>()->default_value(true), "Enable/disable ipv4 accept support.") ("interface4,4", po::value<std::string>()->default_value("0.0.0.0"), "Set the ipv4 address to listen on.") - ("enable_v6", po::value<bool>()->default_value(true), "Enable/disable ipv6 accept support") - ("interface6,6", po::value<std::string>()->default_value("::"), "Set the ipv6 address to listen on") + ("enable_v6", po::value<bool>()->default_value(true), "Enable/disable ipv6 accept support.") + ("interface6,6", po::value<std::string>()->default_value("::"), "Set the ipv6 address to listen on.") + ("nodes,n", po::value<std::string>(), "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<std::string>(); uint16_t port = vm["port"].as<uint16_t>(); - 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; -} - |
