Fast DDS  Version 3.6.1.0
Fast DDS
UDPTransportDescriptor.hpp
1 // Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
20 #ifndef FASTDDS_RTPS_TRANSPORT__UDPTRANSPORTDESCRIPTOR_HPP
21 #define FASTDDS_RTPS_TRANSPORT__UDPTRANSPORTDESCRIPTOR_HPP
22 
23 #include <fastdds/rtps/transport/SocketTransportDescriptor.hpp>
24 #include <fastdds/fastdds_dll.hpp>
25 
26 namespace eprosima {
27 namespace fastdds {
28 namespace rtps {
29 
42 {
44  virtual ~UDPTransportDescriptor() = default;
45 
47  FASTDDS_EXPORTED_API UDPTransportDescriptor();
48 
50  FASTDDS_EXPORTED_API UDPTransportDescriptor(
51  const UDPTransportDescriptor& t) = default;
52 
54  FASTDDS_EXPORTED_API UDPTransportDescriptor& operator =(
55  const UDPTransportDescriptor& t) = default;
56 
58  FASTDDS_EXPORTED_API bool operator ==(
59  const UDPTransportDescriptor& t) const;
60 
63 
75  bool non_blocking_send = false;
76 };
77 
78 } // namespace rtps
79 } // namespace fastdds
80 } // namespace eprosima
81 
82 #endif // FASTDDS_RTPS_TRANSPORT__UDPTRANSPORTDESCRIPTOR_HPP
Virtual base class for the data type used to define configuration of transports using sockets.
Definition: SocketTransportDescriptor.hpp:53
UDP Transport configuration.
Definition: UDPTransportDescriptor.hpp:42
virtual ~UDPTransportDescriptor()=default
Destructor.
FASTDDS_EXPORTED_API UDPTransportDescriptor & operator=(const UDPTransportDescriptor &t)=default
Copy assignment.
FASTDDS_EXPORTED_API UDPTransportDescriptor(const UDPTransportDescriptor &t)=default
Copy constructor.
uint16_t m_output_udp_socket
Source port to use for outgoing datagrams.
Definition: UDPTransportDescriptor.hpp:62
bool non_blocking_send
Whether to use non-blocking calls to send_to().
Definition: UDPTransportDescriptor.hpp:75
FASTDDS_EXPORTED_API UDPTransportDescriptor()
Constructor.
FASTDDS_EXPORTED_API bool operator==(const UDPTransportDescriptor &t) const
Comparison operator.