Ignore:
Timestamp:
10/03/18 20:32:17 (6 years ago)
Author:
tbretz
Message:
Added the possibility to change the port through which the DIM communication with the DNS takes place.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/DimSetup.cc

    r12348 r19232  
    158158//!     Address of the Dim-dns
    159159//!
    160 void Dim::Setup(const std::string &dns, const std::string &host)
     160void Dim::Setup(const std::string &dns, const std::string &host, const uint16_t &port)
    161161{
    162162    if (dns.empty())
     
    172172    setenv("DIM_DNS_NODE",  dns.c_str(), 1);
    173173    setenv("DIM_HOST_NODE", loc.c_str(), 1);
     174    if (port>0)
     175        setenv("DIM_DNS_PORT", to_string(port).c_str(), 1);
    174176
    175     cout << "Setting DIM_DNS_NODE =" << dns << endl;
     177    cout << "Setting DIM_DNS_NODE =" << dns;
     178    if (port>0)
     179        cout << ':' << port << endl;
    176180    cout << "Setting DIM_HOST_NODE=" << loc << endl;
    177181}
Note: See TracChangeset for help on using the changeset viewer.