19.2.3.10.4. Locator_t
-
class Locator_t
Class Locator_t, uniquely identifies a communication channel for a particular transport. For example, an address + port combination in the case of UDP.
Subclassed by eprosima::fastdds::rtps::LocatorWithMask
Public Functions
-
inline Locator_t()
Default constructor.
-
inline Locator_t(uint32_t portin)
Port constructor.
-
inline Locator_t(int32_t kindin, uint32_t portin)
Kind and port constructor.
-
inline bool set_address(const Locator_t &other)
Set the locator IP address using another locator.
- Parameters:
other – Locator which IP address is used to set this locator IP address.
- Returns:
always true.
-
inline octet *get_address()
Getter for the locator IP address.
- Returns:
IP address as octet pointer.
-
inline octet get_address(uint16_t field) const
Getter for a specific field of the locator IP address.
- Parameters:
field – IP address element to be accessed.
- Returns:
Octet value for the specific IP address element.
-
inline void set_Invalid_Address()
Automatic setter for setting locator IP address to invalid address (0).
-
inline Locator_t()