Fast DDS  Version 3.0.0
Fast DDS
Loading...
Searching...
No Matches
ParticipantDiscoveryInfo.hpp
1// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
20#ifndef FASTDDS_RTPS_PARTICIPANT__PARTICIPANTDISCOVERYINFO_HPP
21#define FASTDDS_RTPS_PARTICIPANT__PARTICIPANTDISCOVERYINFO_HPP
22
23#include <fastdds/fastdds_dll.hpp>
24#include <fastdds/rtps/common/Guid.hpp>
25namespace eprosima {
26namespace fastdds {
27namespace rtps {
28
30// *INDENT-OFF* eduponz: Does not understand the #if correctly and ends up removing the ;
31// at the end of the enum, which does not build.
32#if defined(_WIN32)
33enum class FASTDDS_EXPORTED_API ParticipantDiscoveryStatus
34#else
44// *INDENT-ON*
45
46#if HAVE_SECURITY
47struct ParticipantAuthenticationInfo
48{
49 enum FASTDDS_EXPORTED_API AUTHENTICATION_STATUS
50 {
51 AUTHORIZED_PARTICIPANT,
52 UNAUTHORIZED_PARTICIPANT
53 };
54
55 ParticipantAuthenticationInfo()
56 : status(UNAUTHORIZED_PARTICIPANT)
57 {
58 }
59
60 ~ParticipantAuthenticationInfo()
61 {
62 }
63
65 AUTHENTICATION_STATUS status;
66
68 GUID_t guid;
69};
70
71inline bool operator ==(
72 const ParticipantAuthenticationInfo& l,
73 const ParticipantAuthenticationInfo& r)
74{
75 return l.status == r.status &&
76 l.guid == r.guid;
77}
78
79#endif // if HAVE_SECURITY
80
81} // namespace rtps
82} // namespace fastdds
83} // namespace eprosima
84
85#endif // FASTDDS_RTPS_PARTICIPANT__PARTICIPANTDISCOVERYINFO_HPP
bool operator==(const BuiltinTransportsOptions &bto1, const BuiltinTransportsOptions &bto2)
Equal to operator.
Definition BuiltinTransports.hpp:79
ParticipantDiscoveryStatus
Enum ParticipantDiscoveryStatus, four different status for discovered participants.
Definition ParticipantDiscoveryInfo.hpp:37
eProsima namespace.