Skip to content

Commit

Permalink
Refs #21129: solve compilation error after rebase
Browse files Browse the repository at this point in the history
Signed-off-by: elianalf <62831776+elianalf@users.noreply.github.com>
  • Loading branch information
elianalf committed Jun 17, 2024
1 parent 37304f3 commit 28ba6ca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/cpp/xtypes/SubscriberApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void SubscriberApp::on_data_available(

void SubscriberApp::on_data_writer_discovery(
DomainParticipant* /*participant*/,
eprosima::fastrtps::rtps::WriterDiscoveryInfo&& info,
eprosima::fastdds::rtps::WriterDiscoveryInfo&& info,
bool& should_be_ignored)
{
// We don't want to ignore the writer
Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/xtypes/SubscriberApp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class SubscriberApp : public Application, public DomainParticipantListener

void on_data_writer_discovery(
DomainParticipant* participant,
eprosima::fastrtps::rtps::WriterDiscoveryInfo&& info,
eprosima::fastdds::rtps::WriterDiscoveryInfo&& info,
bool& should_be_ignored) override;

//! Run subscriber
Expand Down
10 changes: 5 additions & 5 deletions test/blackbox/api/dds-pim/PubSubParticipant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,16 +886,16 @@ class PubSubParticipant

PubSubParticipant& fill_server_qos(
eprosima::fastdds::dds::WireProtocolConfigQos& qos,
eprosima::fastrtps::rtps::GuidPrefix_t& guid,
eprosima::fastrtps::rtps::Locator_t& locator_server,
eprosima::fastdds::rtps::GuidPrefix_t& guid,
eprosima::fastdds::rtps::Locator_t& locator_server,
uint16_t port,
uint32_t kind)
{
qos.builtin.discovery_config.discoveryProtocol = eprosima::fastrtps::rtps::DiscoveryProtocol_t::SERVER;
qos.builtin.discovery_config.discoveryProtocol = eprosima::fastdds::rtps::DiscoveryProtocol::SERVER;
qos.prefix = guid;
// Generate server's listening locator
eprosima::fastrtps::rtps::IPLocator::setIPv4(locator_server, 127, 0, 0, 1);
eprosima::fastrtps::rtps::IPLocator::setPhysicalPort(locator_server, port);
eprosima::fastdds::rtps::IPLocator::setIPv4(locator_server, 127, 0, 0, 1);
eprosima::fastdds::rtps::IPLocator::setPhysicalPort(locator_server, port);
locator_server.kind = kind;
// Leave logical port as 0 to use TCP DS default logical port
qos.builtin.metatrafficUnicastLocatorList.push_back(locator_server);
Expand Down
4 changes: 2 additions & 2 deletions test/blackbox/common/DDSBlackboxTestsDiscovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ TEST(DDSDiscovery, ServersConnectionTCP)
{
using namespace eprosima;
using namespace eprosima::fastdds::dds;
using namespace eprosima::fastrtps::rtps;
using namespace eprosima::fastdds::rtps;

// TCP default DS port
constexpr uint16_t W_UNICAST_PORT_RANDOM_NUMBER_STR = 41100;
Expand All @@ -334,7 +334,7 @@ TEST(DDSDiscovery, ServersConnectionTCP)
GuidPrefix_t server_1_prefix;
for (auto i = 0; i < 12; i++)
{
server_1_prefix.value[i] = eprosima::fastrtps::rtps::octet(rand() % 254);
server_1_prefix.value[i] = eprosima::fastdds::rtps::octet(rand() % 254);
}
Locator_t locator_server_1;
uint16_t server_1_port = W_UNICAST_PORT_RANDOM_NUMBER_STR;
Expand Down

0 comments on commit 28ba6ca

Please sign in to comment.