Fast DDS  Version 3.6.1.0
Fast DDS
TransportDescriptorInterface Struct Referenceabstract

Virtual base class for the data type used to define transport configuration. More...

#include <TransportDescriptorInterface.hpp>

Inheritance diagram for TransportDescriptorInterface:
ChainingTransportDescriptor PortBasedTransportDescriptor SharedMemTransportDescriptor SocketTransportDescriptor test_SharedMemTransportDescriptor TCPTransportDescriptor UDPTransportDescriptor test_UDPv4TransportDescriptor TCPv4TransportDescriptor TCPv6TransportDescriptor UDPv4TransportDescriptor UDPv6TransportDescriptor

Public Member Functions

FASTDDS_EXPORTED_API TransportDescriptorInterface (uint32_t maximumMessageSize, uint32_t maximumInitialPeersRange)
 Constructor. More...
 
FASTDDS_EXPORTED_API TransportDescriptorInterface (const TransportDescriptorInterface &t)
 Copy constructor. More...
 
FASTDDS_EXPORTED_API TransportDescriptorInterfaceoperator= (const TransportDescriptorInterface &t)
 Copy assignment. More...
 
virtual FASTDDS_EXPORTED_API ~TransportDescriptorInterface ()=default
 Destructor. More...
 
virtual FASTDDS_EXPORTED_API TransportInterfacecreate_transport () const =0
 Factory method pattern. More...
 
virtual FASTDDS_EXPORTED_API uint32_t min_send_buffer_size () const =0
 Returns the minimum size required for a send operation. More...
 
virtual FASTDDS_EXPORTED_API uint32_t max_message_size () const
 Returns the maximum size expected for received messages. More...
 
virtual FASTDDS_EXPORTED_API uint32_t max_initial_peers_range () const
 Returns the maximum number of opened channels for each initial remote peer (maximum number of guessed initial peers to try to connect) More...
 
FASTDDS_EXPORTED_API bool operator== (const TransportDescriptorInterface &t) const
 Comparison operator. More...
 
FASTDDS_EXPORTED_API void lock ()
 Lock internal mutex (for Fast-DDS internal use) More...
 
FASTDDS_EXPORTED_API void unlock ()
 Unlock internal mutex (for Fast-DDS internal use) More...
 

Public Attributes

uint32_t maxMessageSize
 Maximum size of a single message in the transport. More...
 
uint32_t maxInitialPeersRange
 Number of channels opened with each initial remote peer. More...
 

Detailed Description

Virtual base class for the data type used to define transport configuration.

It acts as a builder for a given transport meaning that it allows to configure the transport, and then a new Transport can be built according to this configuration using its create_transport() factory member function.

  • maxMessageSize: maximum size of a single message in the transport.
  • maxInitialPeersRange: number of channels opened with each initial remote peer.

Constructor & Destructor Documentation

◆ TransportDescriptorInterface() [1/2]

FASTDDS_EXPORTED_API TransportDescriptorInterface ( uint32_t  maximumMessageSize,
uint32_t  maximumInitialPeersRange 
)
inline

Constructor.

◆ TransportDescriptorInterface() [2/2]

FASTDDS_EXPORTED_API TransportDescriptorInterface ( const TransportDescriptorInterface t)
inline

Copy constructor.

◆ ~TransportDescriptorInterface()

virtual FASTDDS_EXPORTED_API ~TransportDescriptorInterface ( )
virtualdefault

Destructor.

Member Function Documentation

◆ create_transport()

virtual FASTDDS_EXPORTED_API TransportInterface* create_transport ( ) const
pure virtual

Factory method pattern.

It will create and return a TransportInterface corresponding to this descriptor. This provides an interface to the NetworkFactory to create the transports without the need to know about their type

Implemented in UDPv6TransportDescriptor, UDPv4TransportDescriptor, test_UDPv4TransportDescriptor, TCPv6TransportDescriptor, TCPv4TransportDescriptor, test_SharedMemTransportDescriptor, and SharedMemTransportDescriptor.

◆ lock()

FASTDDS_EXPORTED_API void lock ( )
inline

Lock internal mutex (for Fast-DDS internal use)

◆ max_initial_peers_range()

virtual FASTDDS_EXPORTED_API uint32_t max_initial_peers_range ( ) const
inlinevirtual

Returns the maximum number of opened channels for each initial remote peer (maximum number of guessed initial peers to try to connect)

◆ max_message_size()

virtual FASTDDS_EXPORTED_API uint32_t max_message_size ( ) const
inlinevirtual

Returns the maximum size expected for received messages.

Reimplemented in SharedMemTransportDescriptor, and ChainingTransportDescriptor.

◆ min_send_buffer_size()

virtual FASTDDS_EXPORTED_API uint32_t min_send_buffer_size ( ) const
pure virtual

Returns the minimum size required for a send operation.

Implemented in SocketTransportDescriptor, SharedMemTransportDescriptor, and ChainingTransportDescriptor.

◆ operator=()

FASTDDS_EXPORTED_API TransportDescriptorInterface& operator= ( const TransportDescriptorInterface t)
inline

Copy assignment.

◆ operator==()

FASTDDS_EXPORTED_API bool operator== ( const TransportDescriptorInterface t) const
inline

Comparison operator.

◆ unlock()

FASTDDS_EXPORTED_API void unlock ( )
inline

Unlock internal mutex (for Fast-DDS internal use)

Member Data Documentation

◆ maxInitialPeersRange

uint32_t maxInitialPeersRange

Number of channels opened with each initial remote peer.

◆ maxMessageSize

uint32_t maxMessageSize

Maximum size of a single message in the transport.


The documentation for this struct was generated from the following file: