Skip to content

Commit a0e15a4

Browse files
Fix deprecation warning in CustomChainingTransport (#1104)
* Fix deprecation warning in CustomChainingTransport Signed-off-by: Carlosespicur <carlosespicur@proton.me> * Apply suggestions Signed-off-by: Carlosespicur <carlosespicur@proton.me> --------- Signed-off-by: Carlosespicur <carlosespicur@proton.me>
1 parent 8642f9f commit a0e15a4

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

code/DDSCodeTester.cpp

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,25 @@ class CustomChainingTransport : public eprosima::fastdds::rtps::ChainingTranspor
136136

137137
// Call low level transport
138138
return low_sender_resource->send(buffers, total_bytes, destination_locators_begin,
139-
destination_locators_end, timeout);
139+
destination_locators_end, timeout, 0);
140+
}
141+
142+
bool send_w_priority(
143+
eprosima::fastdds::rtps::SenderResource* low_sender_resource,
144+
const std::vector<eprosima::fastdds::rtps::NetworkBuffer>& buffers,
145+
uint32_t total_bytes,
146+
eprosima::fastdds::rtps::LocatorsIterator* destination_locators_begin,
147+
eprosima::fastdds::rtps::LocatorsIterator* destination_locators_end,
148+
const std::chrono::steady_clock::time_point& timeout,
149+
int32_t transport_priority) override
150+
{
151+
//
152+
// Preprocess outcoming buffer.
153+
//
154+
155+
// Call low level transport
156+
return low_sender_resource->send(buffers, total_bytes, destination_locators_begin,
157+
destination_locators_end, timeout, transport_priority);
140158
}
141159

142160
void receive(

0 commit comments

Comments
 (0)