19#ifndef FASTDDS_RTPS_COMMON__PORTPARAMETERS_HPP
20#define FASTDDS_RTPS_COMMON__PORTPARAMETERS_HPP
22#include <fastdds/rtps/common/Types.hpp>
23#include <fastdds/dds/log/Log.hpp>
72 uint32_t domainId)
const
78 EPROSIMA_LOG_ERROR(RTPS,
"Calculated port number is too high. Probably the domainId is over 232 "
79 <<
"or portBase is too high.");
80 std::cout <<
"Calculated port number is too high. Probably the domainId is over 232 "
81 <<
"or portBase is too high." << std::endl;
98 uint32_t RTPSParticipantID)
const
104 EPROSIMA_LOG_ERROR(RTPS,
"Calculated port number is too high. Probably the domainId is over 232, there are "
105 <<
"too much participants created or portBase is too high.");
106 std::cout <<
"Calculated port number is too high. Probably the domainId is over 232, there are "
107 <<
"too much participants created or portBase is too high." << std::endl;
Class PortParameters, to define the port parameters and gains related with the RTPS protocol.
Definition PortParameters.hpp:35
uint16_t participantIDGain
ParticipantID gain, default value 2.
Definition PortParameters.hpp:122
uint16_t offsetd0
Offset d0, default value 0.
Definition PortParameters.hpp:124
uint16_t domainIDGain
DomainID gain, default value 250.
Definition PortParameters.hpp:120
uint32_t getUnicastPort(uint32_t domainId, uint32_t RTPSParticipantID) const
Get a unicast port based on the domain ID and the participant ID.
Definition PortParameters.hpp:96
uint16_t offsetd3
Offset d3, default value 11.
Definition PortParameters.hpp:130
virtual ~PortParameters()
Definition PortParameters.hpp:49
uint32_t getMulticastPort(uint32_t domainId) const
Get a multicast port based on the domain ID.
Definition PortParameters.hpp:71
uint16_t offsetd2
Offset d2, default value 1.
Definition PortParameters.hpp:128
PortParameters()
Definition PortParameters.hpp:38
uint16_t portBase
PortBase, default value 7400.
Definition PortParameters.hpp:118
bool operator==(const PortParameters &b) const
Definition PortParameters.hpp:53
uint16_t offsetd1
Offset d1, default value 10.
Definition PortParameters.hpp:126