20#ifndef FASTDDS_RTPS_TRANSPORT__TEST_UDPV4TRANSPORTDESCRIPTOR_HPP
21#define FASTDDS_RTPS_TRANSPORT__TEST_UDPV4TRANSPORTDESCRIPTOR_HPP
26#include <fastdds/rtps/transport/SocketTransportDescriptor.hpp>
27#include <fastdds/rtps/common/SequenceNumber.hpp>
34struct TestUDPv4TransportOptions;
Class Locator_t, uniquely identifies a communication channel for a particular transport.
Definition Locator.hpp:71
Interface against which to implement a transport layer, decoupled from Fast DDS internals.
Definition TransportInterface.hpp:64
Structure CDRMessage_t, contains a serialized message.
Definition CDRMessage_t.hpp:51
Virtual base class for the data type used to define configuration of transports using sockets.
Definition SocketTransportDescriptor.hpp:53
Definition test_UDPv4TransportDescriptor.hpp:161
test_UDPv4TransportDescriptor::DestinationLocatorFilter locator_filter
Definition test_UDPv4TransportDescriptor.hpp:171
std::atomic< bool > always_drop_participant_builtin_topic_data
Definition test_UDPv4TransportDescriptor.hpp:169
std::atomic< bool > test_UDPv4Transport_ShutdownAllNetwork
Definition test_UDPv4TransportDescriptor.hpp:165
std::atomic< uint32_t > test_UDPv4Transport_DropLogLength
Definition test_UDPv4TransportDescriptor.hpp:168
std::atomic< bool > simulate_no_interfaces
Definition test_UDPv4TransportDescriptor.hpp:170
std::vector< std::vector< fastdds::rtps::octet > > test_UDPv4Transport_DropLog
Definition test_UDPv4TransportDescriptor.hpp:167
~TestUDPv4TransportOptions()=default
FASTDDS_EXPORTED_API TestUDPv4TransportOptions()=default
UDP v4 Test Transport configuration.
Definition test_UDPv4TransportDescriptor.hpp:41
std::atomic< uint8_t > dropHeartbeatMessagesPercentage
Percentage of heartbeats being dropped.
Definition test_UDPv4TransportDescriptor.hpp:83
filter drop_data_frag_messages_filter_
Filtering function for dropping data fragments messages.
Definition test_UDPv4TransportDescriptor.hpp:78
std::function< bool(eprosima::fastdds::rtps::CDRMessage_t &msg)> filter
Custom message filtering functions.
Definition test_UDPv4TransportDescriptor.hpp:43
FASTDDS_EXPORTED_API test_UDPv4TransportDescriptor()
Constructor.
filter drop_ack_nack_messages_filter_
Filtering function for dropping AckNacks.
Definition test_UDPv4TransportDescriptor.hpp:92
std::shared_ptr< TestUDPv4TransportOptions > test_transport_options
Test transport options.
Definition test_UDPv4TransportDescriptor.hpp:48
std::function< bool(const Locator &destination)> DestinationLocatorFilter
Locator filtering function.
Definition test_UDPv4TransportDescriptor.hpp:45
std::atomic< uint8_t > dropParticipantBuiltinDataMessagesPercentage
Percentage of Data[P] messages being dropped.
Definition test_UDPv4TransportDescriptor.hpp:54
DestinationLocatorFilter locator_filter_
Filtering function for dropping messages to specific destinations.
Definition test_UDPv4TransportDescriptor.hpp:118
std::vector< fastdds::rtps::SequenceNumber_t > sequenceNumberDataMessagesToDrop
Vector containing the message's sequence numbers being dropped.
Definition test_UDPv4TransportDescriptor.hpp:124
filter messages_filter_
Definition test_UDPv4TransportDescriptor.hpp:112
std::atomic< uint8_t > dropDataMessagesPercentage
Test shim parameters Percentage of data messages being dropped.
Definition test_UDPv4TransportDescriptor.hpp:52
filter drop_builtin_data_messages_filter_
Filtering function for dropping builtin data messages.
Definition test_UDPv4TransportDescriptor.hpp:65
FASTDDS_EXPORTED_API test_UDPv4TransportDescriptor & operator=(const test_UDPv4TransportDescriptor &t)=delete
Copy assignment.
virtual TransportInterface * create_transport() const override
Create transport using the parameters defined within the Descriptor.
bool dropSubscriptionBuiltinTopicData
Flag to enable dropping of discovery Reader DATA(R) messages.
Definition test_UDPv4TransportDescriptor.hpp:74
FASTDDS_EXPORTED_API bool operator==(const test_UDPv4TransportDescriptor &t) const
Comparison operator.
std::atomic< uint8_t > dropDataFragMessagesPercentage
Percentage of data fragments being dropped.
Definition test_UDPv4TransportDescriptor.hpp:76
bool dropPublicationBuiltinTopicData
Flag to enable dropping of discovery Writer DATA(W) messages.
Definition test_UDPv4TransportDescriptor.hpp:72
FASTDDS_EXPORTED_API test_UDPv4TransportDescriptor(test_UDPv4TransportDescriptor &&t)=delete
Move constructor.
filter drop_data_messages_filter_
Filtering function for dropping data messages.
Definition test_UDPv4TransportDescriptor.hpp:60
filter sub_messages_filter_
Definition test_UDPv4TransportDescriptor.hpp:104
virtual ~test_UDPv4TransportDescriptor()=default
Destructor.
std::atomic< uint8_t > dropPublicationBuiltinDataMessagesPercentage
Percentage of Data[W] messages being dropped.
Definition test_UDPv4TransportDescriptor.hpp:56
filter drop_heartbeat_messages_filter_
Filtering function for dropping heartbeat messages.
Definition test_UDPv4TransportDescriptor.hpp:85
std::atomic< uint8_t > dropGapMessagesPercentage
Percentage of gap messages being dropped.
Definition test_UDPv4TransportDescriptor.hpp:97
bool dropParticipantBuiltinTopicData
Flag to enable dropping of discovery Participant DATA(P) messages.
Definition test_UDPv4TransportDescriptor.hpp:70
std::atomic< uint8_t > dropSubscriptionBuiltinDataMessagesPercentage
Percentage of Data[R] messages being dropped.
Definition test_UDPv4TransportDescriptor.hpp:58
filter drop_gap_messages_filter_
Filtering function for dropping gap messages.
Definition test_UDPv4TransportDescriptor.hpp:99
std::atomic< uint8_t > percentageOfMessagesToDrop
Definition test_UDPv4TransportDescriptor.hpp:110
std::atomic< uint8_t > dropAckNackMessagesPercentage
Percentage of AckNacks being dropped.
Definition test_UDPv4TransportDescriptor.hpp:90
uint32_t dropLogLength
Log dropped packets.
Definition test_UDPv4TransportDescriptor.hpp:127
FASTDDS_EXPORTED_API test_UDPv4TransportDescriptor(const test_UDPv4TransportDescriptor &t)=delete
Copy constructor.