17.3.3.4. test_UDPv4TransportDescriptor

struct test_UDPv4TransportDescriptor : public eprosima::fastdds::rtps::SocketTransportDescriptor

UDP v4 Test Transport configuration

Public Types

typedef std::function<bool(fastrtps::rtps::CDRMessage_t &msg)> filter

Custom message filtering functions.

typedef std::function<bool(const Locator &destination)> DestinationLocatorFilter

Locator filtering function.

Public Functions

test_UDPv4TransportDescriptor()

Constructor.

virtual ~test_UDPv4TransportDescriptor() = default

Destructor.

virtual TransportInterface *create_transport() const override

Create transport using the parameters defined within the Descriptor.

test_UDPv4TransportDescriptor(const test_UDPv4TransportDescriptor &t) = default

Copy constructor.

test_UDPv4TransportDescriptor &operator=(const test_UDPv4TransportDescriptor &t) = default

Copy assignment.

bool operator==(const test_UDPv4TransportDescriptor &t) const

Comparison operator.

Public Members

uint8_t dropDataMessagesPercentage

Test shim parameters Percentage of data messages being dropped

filter drop_data_messages_filter_

Filtering function for dropping data messages.

bool dropParticipantBuiltinTopicData

Flag to enable dropping of discovery Participant DATA(P) messages.

bool dropPublicationBuiltinTopicData

Flag to enable dropping of discovery Writer DATA(W) messages.

bool dropSubscriptionBuiltinTopicData

Flag to enable dropping of discovery Reader DATA(R) messages.

uint8_t dropDataFragMessagesPercentage

Percentage of data fragments being dropped.

filter drop_data_frag_messages_filter_

Filtering function for dropping data fragments messages.

uint8_t dropHeartbeatMessagesPercentage

Percentage of heartbeats being dropped.

filter drop_heartbeat_messages_filter_

Filtering function for dropping heartbeat messages.

uint8_t dropAckNackMessagesPercentage

Percentage of AckNacks being dropped.

filter drop_ack_nack_messages_filter_

Filtering function for dropping AckNacks.

uint8_t dropGapMessagesPercentage

Percentage of gap messages being dropped.

filter drop_gap_messages_filter_

Filtering function for dropping gap messages.

DestinationLocatorFilter locator_filter_

Filtering function for dropping messages to specific destinations.

std::vector<fastrtps::rtps::SequenceNumber_t> sequenceNumberDataMessagesToDrop

Vector containing the message’s sequence numbers being dropped.

uint32_t dropLogLength

Log dropped packets.