Changeset 11574 for trunk/FACT++/src/chatclient.cc
- Timestamp:
- 07/24/11 20:43:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/chatclient.cc
r10802 r11574 3 3 #include "Configuration.h" 4 4 #include "ChatClient.h" 5 #include "DimSetup.h" 5 6 6 7 using namespace std; … … 30 31 po::options_description config("Program options"); 31 32 config.add_options() 32 ("dns", var<string>("localhost"), "Dim nameserver host name (Overwites DIM_DNS_NODE environment variable)") 33 ("dns", var<string>("localhost"), "Dim nameserver (overwites DIM_DNS_NODE environment variable)") 34 ("host", var<string>(""), "Address with which the Dim nameserver can connect to this host (overwites DIM_HOST_NODE environment variable)") 33 35 ("log,l", var<string>(n), "Write log-file") 34 36 ("console,c", var<int>(), "Use console (0=shell, 1=simple buffered, X=simple unbuffered)") 35 37 ; 36 38 37 conf.AddEnv("dns", "DIM_DNS_NODE"); 39 conf.AddEnv("dns", "DIM_DNS_NODE"); 40 conf.AddEnv("host", "DIM_HOST_NODE"); 38 41 39 42 conf.AddOptions(config); … … 103 106 } 104 107 105 // To allow overwriting of DIM_DNS_NODE set 0 to 1 106 setenv("DIM_DNS_NODE", conf.Get<string>("dns").c_str(), 1); 108 Dim::Setup(conf.Get<string>("dns"), conf.Get<string>("host")); 107 109 108 110 if (conf.Get<int>("console")==0)
Note:
See TracChangeset
for help on using the changeset viewer.