Changeset 19232 for trunk/FACT++/src/DimSetup.cc
- Timestamp:
- 10/03/18 20:32:17 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DimSetup.cc
r12348 r19232 158 158 //! Address of the Dim-dns 159 159 //! 160 void Dim::Setup(const std::string &dns, const std::string &host )160 void Dim::Setup(const std::string &dns, const std::string &host, const uint16_t &port) 161 161 { 162 162 if (dns.empty()) … … 172 172 setenv("DIM_DNS_NODE", dns.c_str(), 1); 173 173 setenv("DIM_HOST_NODE", loc.c_str(), 1); 174 if (port>0) 175 setenv("DIM_DNS_PORT", to_string(port).c_str(), 1); 174 176 175 cout << "Setting DIM_DNS_NODE =" << dns << endl; 177 cout << "Setting DIM_DNS_NODE =" << dns; 178 if (port>0) 179 cout << ':' << port << endl; 176 180 cout << "Setting DIM_HOST_NODE=" << loc << endl; 177 181 }
Note:
See TracChangeset
for help on using the changeset viewer.