15#ifndef FASTDDS_RTPS_TRANSPORT__PORTBASEDTRANSPORTDESCRIPTOR_HPP
16#define FASTDDS_RTPS_TRANSPORT__PORTBASEDTRANSPORTDESCRIPTOR_HPP
21#include <fastdds/rtps/attributes/ThreadSettings.hpp>
22#include <fastdds/rtps/transport/TransportDescriptorInterface.hpp>
23#include <fastdds/fastdds_dll.hpp>
45 uint32_t maximumMessageSize,
46 uint32_t maximumInitialPeersRange);
Base class for all port based transport descriptors.
Definition PortBasedTransportDescriptor.hpp:38
FASTDDS_EXPORTED_API const ReceptionThreadsConfigMap & reception_threads() const
Returns the ThreadSettings for the user-configured reception threads.
FASTDDS_EXPORTED_API PortBasedTransportDescriptor(const PortBasedTransportDescriptor &t)=default
Copy constructor.
ThreadSettings default_reception_threads_
Thread settings for the default reception threads.
Definition PortBasedTransportDescriptor.hpp:103
virtual FASTDDS_EXPORTED_API bool reception_threads(const ReceptionThreadsConfigMap &reception_threads)
Set the ThreadSettings for the user-configured reception threads.
virtual FASTDDS_EXPORTED_API bool set_thread_config_for_port(const uint32_t &port, const ThreadSettings &thread_settings)
bool FASTDDS_EXPORTED_API operator==(const PortBasedTransportDescriptor &t) const
Comparison operator.
FASTDDS_EXPORTED_API PortBasedTransportDescriptor & operator=(const PortBasedTransportDescriptor &t)=default
Copy assignment.
virtual FASTDDS_EXPORTED_API void default_reception_threads(const ThreadSettings &default_reception_threads)
Set the ThreadSettings for the default reception threads.
std::map< uint32_t, ThreadSettings > ReceptionThreadsConfigMap
Definition PortBasedTransportDescriptor.hpp:41
FASTDDS_EXPORTED_API const ThreadSettings & default_reception_threads() const
Returns the ThreadSettings for the default reception threads.
ReceptionThreadsConfigMap reception_threads_
Thread settings for the specific reception threads, indexed by port.
Definition PortBasedTransportDescriptor.hpp:106
virtual FASTDDS_EXPORTED_API const ThreadSettings & get_thread_config_for_port(uint32_t port) const
Get the ThreadSettings for a specific port.
virtual FASTDDS_EXPORTED_API ~PortBasedTransportDescriptor()=default
Destructor.
FASTDDS_EXPORTED_API PortBasedTransportDescriptor(uint32_t maximumMessageSize, uint32_t maximumInitialPeersRange)
Constructor.
Struct ThreadSettings to specify various thread settings.
Definition ThreadSettings.hpp:37
Virtual base class for the data type used to define transport configuration.
Definition TransportDescriptorInterface.hpp:48