20#ifndef FASTDDS_RTPS_TRANSPORT_SHARED_MEM__SHAREDMEMTRANSPORTDESCRIPTOR_HPP
21#define FASTDDS_RTPS_TRANSPORT_SHARED_MEM__SHAREDMEMTRANSPORTDESCRIPTOR_HPP
25#include <fastdds/rtps/attributes/ThreadSettings.hpp>
26#include <fastdds/rtps/transport/PortBasedTransportDescriptor.hpp>
27#include <fastdds/fastdds_dll.hpp>
33class TransportInterface;
102 return port_queue_capacity_;
115 return healthy_check_timeout_ms_;
128 return rtps_dump_file_;
157 uint32_t segment_size_;
158 uint32_t port_queue_capacity_;
159 uint32_t healthy_check_timeout_ms_;
160 std::string rtps_dump_file_;
Base class for all port based transport descriptors.
Definition PortBasedTransportDescriptor.hpp:38
Interface against which to implement a transport layer, decoupled from Fast DDS internals.
Definition TransportInterface.hpp:64
Shared memory transport configuration.
Definition SharedMemTransportDescriptor.hpp:50
FASTDDS_EXPORTED_API void rtps_dump_file(const std::string &rtps_dump_file)
Set the full path of the protocol dump file.
Definition SharedMemTransportDescriptor.hpp:132
FASTDDS_EXPORTED_API void max_message_size(uint32_t max_message_size)
Set the maximum size of a single message in the transport (in octets)
Definition SharedMemTransportDescriptor.hpp:93
FASTDDS_EXPORTED_API uint32_t segment_size() const
Return the size of the shared memory segment.
Definition SharedMemTransportDescriptor.hpp:74
uint32_t min_send_buffer_size() const override
Minimum size of the send buffer.
Definition SharedMemTransportDescriptor.hpp:57
FASTDDS_EXPORTED_API SharedMemTransportDescriptor & operator=(const SharedMemTransportDescriptor &t)=default
Copy assignment.
FASTDDS_EXPORTED_API ThreadSettings dump_thread() const
Return the thread settings for the transport dump thread.
Definition SharedMemTransportDescriptor.hpp:139
FASTDDS_EXPORTED_API uint32_t healthy_check_timeout_ms() const
Return the timeout for the health check of ports (ms)
Definition SharedMemTransportDescriptor.hpp:113
FASTDDS_EXPORTED_API uint32_t port_queue_capacity() const
Return the size of the listening port (in messages)
Definition SharedMemTransportDescriptor.hpp:100
FASTDDS_EXPORTED_API SharedMemTransportDescriptor(const SharedMemTransportDescriptor &t)=default
Copy constructor.
virtual ~SharedMemTransportDescriptor()=default
Destructor.
virtual TransportInterface * create_transport() const override
Factory method pattern.
FASTDDS_EXPORTED_API SharedMemTransportDescriptor()
Constructor.
FASTDDS_EXPORTED_API void dump_thread(const ThreadSettings &dump_thread)
Set the thread settings for the transport dump thread.
Definition SharedMemTransportDescriptor.hpp:145
virtual uint32_t max_message_size() const override
Return the maximum size of a single message in the transport (in octets)
Definition SharedMemTransportDescriptor.hpp:87
FASTDDS_EXPORTED_API std::string rtps_dump_file() const
Return the full path of the protocol dump file.
Definition SharedMemTransportDescriptor.hpp:126
FASTDDS_EXPORTED_API void healthy_check_timeout_ms(uint32_t healthy_check_timeout_ms)
Set the timeout for the health check of ports (ms)
Definition SharedMemTransportDescriptor.hpp:119
FASTDDS_EXPORTED_API bool operator==(const SharedMemTransportDescriptor &t) const
Comparison operator.
FASTDDS_EXPORTED_API void segment_size(uint32_t segment_size)
Set the size of the shared memory segment.
Definition SharedMemTransportDescriptor.hpp:80
FASTDDS_EXPORTED_API void port_queue_capacity(uint32_t port_queue_capacity)
Set the size of the listening port (in messages)
Definition SharedMemTransportDescriptor.hpp:106
Struct ThreadSettings to specify various thread settings.
Definition ThreadSettings.hpp:37
uint32_t maxMessageSize
Maximum size of a single message in the transport.
Definition TransportDescriptorInterface.hpp:123