Changeset 10491 for trunk/FACT++/src


Ignore:
Timestamp:
04/29/11 12:46:23 (14 years ago)
Author:
tbretz
Message:
Added some comment.
File:
1 edited

Legend:

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

    r10476 r10491  
    129129        return;
    130130
     131    const string name   = getInfo()->getName();
     132    const string server = name.substr(0, name.find_first_of('/'));
     133
    131134    fConnected = getInfo()->getSize()!=0;
    132135
     
    134137    if (!fConnected)
    135138    {
    136         fMsg.Message("Disconnected.");
     139        // We cannot print this message because it is produced by
     140        // every server which doesn't have the MESSAGE service, too.
     141        //fMsg.Message(server+": Disconnected.");
    137142        return;
    138143    }
     
    142147        return;
    143148
    144     const string n = getInfo()->getName();
    145 
    146149    stringstream msg;
    147     msg << n.substr(0, n.find_first_of('/')) << ": " << getInfo()->getString();
     150    msg << server << ": " << getInfo()->getString();
    148151
    149152    // Write the received message to the output
Note: See TracChangeset for help on using the changeset viewer.