-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refs #15188: Implement Initial peers in core Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #15188: Add blackbox tests to initial peers Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #15188: Add initial peers to yaml Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #15188: Update Yaml schema Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #15191: Add it to tool tests Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #15191: Add example resources Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #15191: Correct and tie up loose ends Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: Move payload Pool to subfolder Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: Implement Repeater Participant Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: Add documentation Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: Add release notes Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: Allow only one Participant if repeater Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: Update yaml schema configuration Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: Implement generic limitless Pool Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: Add code comments and refactor LimitlessPool Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: Apply suggestions (except name changes) Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: Apply docs documentation Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: Change classes names Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: Rebase over initial peers Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: fix repeater configuration test Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: Refactor Participant Kind names Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: fix rebase Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: apply code suggestions Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: change Participant classes names Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: apply documentation changes Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: apply docs suggestions Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: remove number_of_participants test Signed-off-by: jparisu <javierparis@eprosima.com> * Refs #14951: uncrustify Signed-off-by: jparisu <javierparis@eprosima.com>
- Loading branch information
Showing
135 changed files
with
4,024 additions
and
532 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
83 changes: 83 additions & 0 deletions
83
...include/ddsrouter_core/configuration/participant/InitialPeersParticipantConfiguration.hpp
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,83 @@ | ||
// Copyright 2022 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. | ||
|
||
/** | ||
* @file InitialPeersParticipantConfiguration.hpp | ||
*/ | ||
|
||
#ifndef _DDSROUTERCORE_CONFIGURATION_PARTICIPANT_INITIALPEERSPARTICIPANTCONFIGURATION_HPP_ | ||
#define _DDSROUTERCORE_CONFIGURATION_PARTICIPANT_INITIALPEERSPARTICIPANTCONFIGURATION_HPP_ | ||
|
||
#include <ddsrouter_core/configuration/participant/SimpleParticipantConfiguration.hpp> | ||
#include <ddsrouter_core/library/library_dll.h> | ||
#include <ddsrouter_core/types/security/tls/TlsConfiguration.hpp> | ||
#include <ddsrouter_core/types/address/Address.hpp> | ||
#include <ddsrouter_core/types/address/DiscoveryServerConnectionAddress.hpp> | ||
#include <ddsrouter_core/types/dds/DomainId.hpp> | ||
#include <ddsrouter_core/types/dds/GuidPrefix.hpp> | ||
#include <ddsrouter_core/types/participant/ParticipantKind.hpp> | ||
|
||
namespace eprosima { | ||
namespace ddsrouter { | ||
namespace core { | ||
namespace configuration { | ||
|
||
/** | ||
* This data struct joins Initial Peers Participant Configuration features | ||
*/ | ||
struct InitialPeersParticipantConfiguration : public SimpleParticipantConfiguration | ||
{ | ||
|
||
///////////////////////// | ||
// CONSTRUCTORS | ||
///////////////////////// | ||
|
||
DDSROUTER_CORE_DllAPI InitialPeersParticipantConfiguration() = default; | ||
|
||
DDSROUTER_CORE_DllAPI InitialPeersParticipantConfiguration( | ||
const types::ParticipantId& id, | ||
const types::ParticipantKind& kind, | ||
const bool is_repeater, | ||
const types::DomainId& domain_id, | ||
const std::set<types::Address>& listening_addresses, | ||
const std::set<types::Address>& connection_addresses, | ||
const types::security::TlsConfiguration tls_configuration); | ||
|
||
///////////////////////// | ||
// METHODS | ||
///////////////////////// | ||
|
||
DDSROUTER_CORE_DllAPI virtual bool is_valid( | ||
utils::Formatter& error_msg) const noexcept override; | ||
|
||
DDSROUTER_CORE_DllAPI bool operator ==( | ||
const InitialPeersParticipantConfiguration& other) const noexcept; | ||
|
||
///////////////////////// | ||
// VARIABLES | ||
///////////////////////// | ||
|
||
std::set<types::Address> listening_addresses = {}; | ||
|
||
std::set<types::Address> connection_addresses = {}; | ||
|
||
types::security::TlsConfiguration tls_configuration = types::security::TlsConfiguration(); | ||
}; | ||
|
||
} /* namespace configuration */ | ||
} /* namespace core */ | ||
} /* namespace ddsrouter */ | ||
} /* namespace eprosima */ | ||
|
||
#endif /* _DDSROUTERCORE_CONFIGURATION_PARTICIPANT_INITIALPEERSPARTICIPANTCONFIGURATION_HPP_ */ |
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
Oops, something went wrong.