Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#6 accept BBnt external file using hostname

open
nobody
Externals (3)
5
2011-12-27
2011-12-27
Anonymous
No

It can be more than good to allow BBwin to act like BBnt and accept to parse external file (put in TMPDIR) with such format :
hostname:color date time
message

actually BBwin can send msg to BB/hobbit with only one hostname (the server who run BBwin)

Discussion

  • ze
    ze
    2012-01-06

    Here is a suggestion of change made into externals.cpp file (line 58)

    statusLine.erase(0, pos);
    //check if it's only color or hostname:color
    pos = color.find_first_of(":");
    if(pos > 0 && pos < color.length()) {
    hostName = color.substr(0, pos);
    color.erase(0, pos+1);
    }
    else
    {
    hostName = m_mgr.GetSetting("hostname");
    }

    and of course this line :
    // check the validity of the line
    reportData << " " << hostName << "." << reportName << " ";

    i let you see if it's correct or not (it work for me)