MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / write

Method write

tests/DCPS/PersistentDurability/Writer.cpp:114–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114int
115Writer::write (Messenger::MessageDataWriter_ptr message_dw,
116 ::DDS::InstanceHandle_t& handle,
117 Messenger::Message& message)
118{
119 for (int i = 0; i < num_messages; ++i)
120 {
121 ++this->count_;
122 message.count = this->count_;
123
124 ::DDS::ReturnCode_t const ret = message_dw->write (message, handle);
125
126 if (ret != ::DDS::RETCODE_OK)
127 {
128 ACE_ERROR ((LM_ERROR,
129 ACE_TEXT("(%P|%t) ERROR: Writer::svc, ")
130 ACE_TEXT ("%dth write() returned %d.\n"),
131 i,
132 -1));
133 if (ret == ::DDS::RETCODE_TIMEOUT)
134 {
135 ++this->timeout_writes_;
136 }
137 }
138
139 }
140
141 return 0;
142}

Callers 7

svcMethod · 0.95
ACE_TMAINFunction · 0.45
svcMethod · 0.45
coherent_testFunction · 0.45
ordered_testFunction · 0.45
runMethod · 0.45
ACE_TMAINFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected