.. _program_listing_file__tmp_ws_src_fastrtps_include_fastdds_rtps_transport_test_UDPv4TransportDescriptor.h: Program Listing for File test_UDPv4TransportDescriptor.h ======================================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/fastrtps/include/fastdds/rtps/transport/test_UDPv4TransportDescriptor.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef _FASTDDS_TEST_UDPV4_TRANSPORT_DESCRIPTOR_ #define _FASTDDS_TEST_UDPV4_TRANSPORT_DESCRIPTOR_ #include #include #include #include namespace eprosima { namespace fastdds { namespace rtps { struct test_UDPv4TransportDescriptor : public SocketTransportDescriptor { typedef std::function filter; typedef std::function DestinationLocatorFilter; uint8_t dropDataMessagesPercentage; filter drop_data_messages_filter_; bool dropParticipantBuiltinTopicData; bool dropPublicationBuiltinTopicData; bool dropSubscriptionBuiltinTopicData; uint8_t dropDataFragMessagesPercentage; filter drop_data_frag_messages_filter_; uint8_t dropHeartbeatMessagesPercentage; filter drop_heartbeat_messages_filter_; uint8_t dropAckNackMessagesPercentage; filter drop_ack_nack_messages_filter_; uint8_t dropGapMessagesPercentage; filter drop_gap_messages_filter_; // General drop percentage (indiscriminate) uint8_t percentageOfMessagesToDrop; // General filtering function for all kind of messages (indiscriminate) filter messages_filter_; DestinationLocatorFilter locator_filter_; std::vector sequenceNumberDataMessagesToDrop; uint32_t dropLogLength; RTPS_DllAPI test_UDPv4TransportDescriptor(); virtual ~test_UDPv4TransportDescriptor() = default; virtual TransportInterface* create_transport() const override; RTPS_DllAPI test_UDPv4TransportDescriptor( const test_UDPv4TransportDescriptor& t) = default; RTPS_DllAPI test_UDPv4TransportDescriptor& operator =( const test_UDPv4TransportDescriptor& t) = default; // Filters are not included RTPS_DllAPI bool operator ==( const test_UDPv4TransportDescriptor& t) const; }; } // namespace rtps } // namespace fastdds } // namespace eprosima #endif // FASTDDS_TEST_UDPV4_TRANSPORT_DESCRIPTOR_