Program Listing for File RTPSMessageSenderInterface.hpp
↰ Return to documentation for file (/tmp/ws/src/fastrtps/include/fastdds/rtps/messages/RTPSMessageSenderInterface.hpp
)
// Copyright 2019 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.
#ifndef _FASTDDS_RTPS_MESSAGES_RTPSMESSAGESENDERINTERFACE_HPP_
#define _FASTDDS_RTPS_MESSAGES_RTPSMESSAGESENDERINTERFACE_HPP_
#ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC
#include <fastdds/rtps/messages/CDRMessage.h>
#include <fastdds/rtps/common/Guid.h>
#include <vector>
namespace eprosima {
namespace fastrtps {
namespace rtps {
class RTPSMessageSenderInterface
{
public:
virtual ~RTPSMessageSenderInterface() = default;
virtual bool destinations_have_changed() const = 0;
virtual GuidPrefix_t destination_guid_prefix() const = 0;
virtual const std::vector<GuidPrefix_t>& remote_participants() const = 0;
virtual const std::vector<GUID_t>& remote_guids() const = 0;
virtual bool send(
CDRMessage_t* message,
std::chrono::steady_clock::time_point max_blocking_time_point) const = 0;
virtual void lock() = 0;
virtual void unlock() = 0;
};
} /* namespace rtps */
} /* namespace fastrtps */
} /* namespace eprosima */
#endif // ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC
#endif /* _FASTDDS_RTPS_MESSAGES_RTPSMESSAGESENDERINTERFACE_HPP_ */