Fast DDS  Version 3.3.0
Fast DDS
Loading...
Searching...
No Matches
RpcRequest.hpp
1// Copyright 2025 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
19#ifndef FASTDDS_DDS_RPC_INTERFACES__RPCREQUEST_HPP
20#define FASTDDS_DDS_RPC_INTERFACES__RPCREQUEST_HPP
21
22#include <fastdds/rtps/common/Guid.hpp>
23#include <fastdds/rtps/common/RemoteLocators.hpp>
24
25namespace eprosima {
26namespace fastdds {
27namespace dds {
28namespace rpc {
29
34{
35public:
36
40 virtual ~RpcRequest() noexcept = default;
41
47 virtual const eprosima::fastdds::rtps::GUID_t& get_client_id() const = 0;
48
54 virtual const eprosima::fastdds::rtps::RemoteLocatorList& get_client_locators() const = 0;
55
56};
57
58} // namespace rpc
59} // namespace dds
60} // namespace fastdds
61} // namespace eprosima
62
63#endif // FASTDDS_DDS_RPC_INTERFACES__RPCREQUEST_HPP
An interface with generic RPC requests functionality.
Definition RpcRequest.hpp:34
virtual const eprosima::fastdds::rtps::RemoteLocatorList & get_client_locators() const =0
Get the locators of the client that made the request.
virtual ~RpcRequest() noexcept=default
Destructor.
virtual const eprosima::fastdds::rtps::GUID_t & get_client_id() const =0
Get the GUID of the client that made the request.
Definition DomainParticipant.hpp:46
eProsima namespace.