Exemple #1
0
void
Xfer::Update(Subject *TheChangedSubject)
{
    if (output == NULL)
        return;

    AttributeSubject *subject = (AttributeSubject *)TheChangedSubject;

    // Write out the subject's guido and message size.
//    output->WriteGroupStart(subject->TypeName().c_str());
//    output->WriteInt(subject->GetGuido());
//    int sz = subject->CalculateMessageSize(*output);
//    output->WriteInt(sz);

    debug5 << "Xfer::Update: Sending: opcode=" << subject->GetGuido()
//           << ", len=" << sz
           << ", name=" << subject->TypeName().c_str() << endl;

//    // Write the things about the subject that have changed onto the
//    // output connection and flush it out to make sure it's sent.
//    subject->Write(*output);
//    output->WriteGroupEnd(subject->TypeName().c_str());
//    output->Flush();
    output->Flush(subject);
}
Exemple #2
0
void
Xfer::Update(Subject *TheChangedSubject)
{
    if (output == NULL)
        return;

    AttributeSubject *subject = (AttributeSubject *)TheChangedSubject;
    debug5 << "Xfer::Update: Sending: opcode=" << subject->GetGuido()
           << ", name=" << subject->TypeName().c_str() << endl;

    AttributeSubjectSerialize ser;
    ser.SetConnection(output);
    ser.Flush(subject);
}