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); }
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); }
void MPIXfer::Update(Subject *TheChangedSubject) { // We only do this until we know how to merge replies.... if (!PAR_UIProcess()) return; if (output == NULL) return; AttributeSubject *subject = (AttributeSubject *)TheChangedSubject; // Write out the subject's guido and message size. output->WriteInt(subject->GetGuido()); output->WriteInt(subject->CalculateMessageSize(*output)); // 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->Flush(); }