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

Method write

tests/DCPS/TransientDurability/Writer.cpp:110–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 7

svcMethod · 0.95
svcMethod · 0.45
publishMethod · 0.45
ACE_TMAINFunction · 0.45
ACE_TMAINFunction · 0.45
ACE_TMAINFunction · 0.45
write_messageMethod · 0.45

Calls

no outgoing calls

Tested by 1

write_messageMethod · 0.36