|
58 | 58 | #include <fastrtps/utils/Semaphore.h> |
59 | 59 | #include <fastrtps/xmlparser/XMLProfileManager.h> |
60 | 60 |
|
| 61 | +#include <rtps/builtin/data/ProxyDataConverters.hpp> |
61 | 62 | #include <rtps/builtin/discovery/participant/PDPClient.h> |
62 | 63 | #include <rtps/builtin/discovery/participant/PDPServer.hpp> |
63 | 64 | #include <rtps/history/BasicPayloadPool.hpp> |
@@ -2939,6 +2940,40 @@ std::vector<fastdds::rtps::TransportNetmaskFilterInfo> RTPSParticipantImpl::get_ |
2939 | 2940 | return m_network_Factory.netmask_filter_info(); |
2940 | 2941 | } |
2941 | 2942 |
|
| 2943 | +bool RTPSParticipantImpl::get_publication_info( |
| 2944 | + fastdds::dds::builtin::PublicationBuiltinTopicData& data, |
| 2945 | + const GUID_t& writer_guid) const |
| 2946 | +{ |
| 2947 | + bool ret = false; |
| 2948 | + WriterProxyData wproxy_data(m_att.allocation.locators.max_unicast_locators, |
| 2949 | + m_att.allocation.locators.max_multicast_locators); |
| 2950 | + |
| 2951 | + if (mp_builtinProtocols->mp_PDP->lookupWriterProxyData(writer_guid, wproxy_data)) |
| 2952 | + { |
| 2953 | + from_proxy_to_builtin(wproxy_data, data); |
| 2954 | + ret = true; |
| 2955 | + } |
| 2956 | + |
| 2957 | + return ret; |
| 2958 | +} |
| 2959 | + |
| 2960 | +bool RTPSParticipantImpl::get_subscription_info( |
| 2961 | + fastdds::dds::builtin::SubscriptionBuiltinTopicData& data, |
| 2962 | + const GUID_t& reader_guid) const |
| 2963 | +{ |
| 2964 | + bool ret = false; |
| 2965 | + ReaderProxyData rproxy_data(m_att.allocation.locators.max_unicast_locators, |
| 2966 | + m_att.allocation.locators.max_multicast_locators); |
| 2967 | + |
| 2968 | + if (mp_builtinProtocols->mp_PDP->lookupReaderProxyData(reader_guid, rproxy_data)) |
| 2969 | + { |
| 2970 | + from_proxy_to_builtin(rproxy_data, data); |
| 2971 | + ret = true; |
| 2972 | + } |
| 2973 | + |
| 2974 | + return ret; |
| 2975 | +} |
| 2976 | + |
2942 | 2977 | #ifdef FASTDDS_STATISTICS |
2943 | 2978 |
|
2944 | 2979 | bool RTPSParticipantImpl::register_in_writer( |
|
0 commit comments