-
Notifications
You must be signed in to change notification settings - Fork 783
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenOutputChannels / CloseOutputChannels that receive a LocatorSelect…
…orEntry (#4411) * Refs #20492: New outputchannel related methods with locator selector entry argument Signed-off-by: Jesus Perez <[email protected]> * Refs #20492: Uncrustify Signed-off-by: Jesus Perez <[email protected]> * Refs #20492: Add dll Signed-off-by: Jesus Perez <[email protected]> * Refs #20492: Apply suggestions Signed-off-by: Jesus Perez <[email protected]> * Refs #20492: Fix method description Signed-off-by: Jesus Perez <[email protected]> * Refs #20492: Remove dll Signed-off-by: Jesus Perez <[email protected]> * Refs #20492: Fix build and add to versions Signed-off-by: Jesus Perez <[email protected]> * Refs #20492: Apply suggestions Signed-off-by: Jesus Perez <[email protected]> * Refs #20492: Add TODO in NetworkFactory Signed-off-by: EduPonz <[email protected]> * Refs #20492: Rename TCPTransportInterface::CloseOutputChannel to cleanup_sender_resources Signed-off-by: EduPonz <[email protected]> * Refs #20492: Rename new TransportInterface::Open|CloseOutputChannel to Open|CloseOutputChannels Signed-off-by: EduPonz <[email protected]> --------- Signed-off-by: Jesus Perez <[email protected]> Signed-off-by: EduPonz <[email protected]> Co-authored-by: EduPonz <[email protected]>
- Loading branch information
Showing
15 changed files
with
101 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// Copyright 2024 Proyectos y Sistemas de Mantenimiento SL (eProsima). | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#include <fastdds/rtps/transport/TransportInterface.h> | ||
|
||
#include <fastdds/rtps/common/LocatorSelectorEntry.hpp> | ||
|
||
namespace eprosima { | ||
namespace fastdds { | ||
namespace rtps { | ||
|
||
using LocatorSelectorEntry = fastrtps::rtps::LocatorSelectorEntry; | ||
|
||
bool TransportInterface::OpenOutputChannels( | ||
SendResourceList& send_resource_list, | ||
const LocatorSelectorEntry& locator_selector_entry) | ||
{ | ||
bool success = false; | ||
for (size_t i = 0; i < locator_selector_entry.state.multicast.size(); ++i) | ||
{ | ||
size_t index = locator_selector_entry.state.multicast[i]; | ||
success |= OpenOutputChannel(send_resource_list, locator_selector_entry.multicast[index]); | ||
} | ||
for (size_t i = 0; i < locator_selector_entry.state.unicast.size(); ++i) | ||
{ | ||
size_t index = locator_selector_entry.state.unicast[i]; | ||
success |= OpenOutputChannel(send_resource_list, locator_selector_entry.unicast[index]); | ||
} | ||
return success; | ||
} | ||
|
||
void TransportInterface::CloseOutputChannels( | ||
SendResourceList& sender_resource_list, | ||
const fastrtps::rtps::LocatorSelectorEntry& locator_selector_entry) | ||
{ | ||
static_cast<void>(sender_resource_list); | ||
static_cast<void>(locator_selector_entry); | ||
} | ||
|
||
} // namespace rtps | ||
} // namespace fastrtps | ||
} // namespace eprosima |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters