| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
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
19
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
41 struct UDPTransportDescriptor : public SocketTransportDescriptor
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
62 uint16_t m_output_udp_socket;
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
eprosima::fastdds::rtps
Contains the RTPS protocol implementation.
eprosima::fastdds
eprosima
eProsima namespace.
eprosima::fastdds::rtps::SocketTransportDescriptor::SocketTransportDescriptor
FASTDDS_EXPORTED_API SocketTransportDescriptor(uint32_t maximumMessageSize, uint32_t maximumInitialPeersRange)
Constructor.
Definition SocketTransportDescriptor.hpp:55
eprosima::fastdds::rtps::UDPTransportDescriptor::~UDPTransportDescriptor
virtual ~UDPTransportDescriptor()=default
Destructor.
eprosima::fastdds::rtps::UDPTransportDescriptor::UDPTransportDescriptor
FASTDDS_EXPORTED_API UDPTransportDescriptor(const UDPTransportDescriptor &t)=default
Copy constructor.
eprosima::fastdds::rtps::UDPTransportDescriptor::m_output_udp_socket
uint16_t m_output_udp_socket
Source port to use for outgoing datagrams.
Definition UDPTransportDescriptor.hpp:62
eprosima::fastdds::rtps::UDPTransportDescriptor::non_blocking_send
bool non_blocking_send
Whether to use non-blocking calls to send_to().
Definition UDPTransportDescriptor.hpp:75
eprosima::fastdds::rtps::UDPTransportDescriptor::UDPTransportDescriptor
FASTDDS_EXPORTED_API UDPTransportDescriptor()
Constructor.
eprosima::fastdds::rtps::UDPTransportDescriptor::operator=
FASTDDS_EXPORTED_API UDPTransportDescriptor & operator=(const UDPTransportDescriptor &t)=default
Copy assignment.
eprosima::fastdds::rtps::UDPTransportDescriptor::operator==
FASTDDS_EXPORTED_API bool operator==(const UDPTransportDescriptor &t) const
Comparison operator.