- Timestamp:
- 10/03/18 20:33:22 (6 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/chatclient.cc
r14009 r19233 32 32 config.add_options() 33 33 ("dns", var<string>("localhost"), "Dim nameserver (overwites DIM_DNS_NODE environment variable)") 34 ("port", var<uint16_t>(DNS_PORT), "Port to connect to dim nameserver.") 34 35 ("host", var<string>(""), "Address with which the Dim nameserver can connect to this host (overwites DIM_HOST_NODE environment variable)") 35 36 ("log,l", var<string>(n), "Write log-file") … … 38 39 39 40 conf.AddEnv("dns", "DIM_DNS_NODE"); 41 conf.AddEnv("port", "DIM_DNS_PORT"); 40 42 conf.AddEnv("host", "DIM_HOST_NODE"); 41 43 … … 82 84 return 127; 83 85 84 Dim::Setup(conf.Get<string>("dns"), conf.Get<string>("host") );86 Dim::Setup(conf.Get<string>("dns"), conf.Get<string>("host"), conf.Get<uint16_t>("port")); 85 87 86 88 if (conf.Get<int>("console")==0) -
trunk/FACT++/src/chatserv.cc
r16780 r19233 17 17 config.add_options() 18 18 ("dns", var<string>("localhost"), "Dim nameserver (overwites DIM_DNS_NODE environment variable)") 19 ("port", var<uint16_t>(DNS_PORT), "Port to connect to dim nameserver.") 19 20 ("host", var<string>(""), "Address with which the Dim nameserver can connect to this host (overwites DIM_HOST_NODE environment variable)") 20 21 ("log,l", var<string>(n), "Write log-file") … … 22 23 23 24 conf.AddEnv("dns", "DIM_DNS_NODE"); 25 conf.AddEnv("port", "DIM_DNS_PORT"); 24 26 conf.AddEnv("host", "DIM_HOST_NODE"); 25 27 … … 82 84 return 127; 83 85 84 Dim::Setup(conf.Get<string>("dns"), conf.Get<string>("host") );86 Dim::Setup(conf.Get<string>("dns"), conf.Get<string>("host"), conf.Get<uint16_t>("port")); 85 87 86 88 WindowLog log;
Note:
See TracChangeset
for help on using the changeset viewer.