|
Safe DDS
|
Stores remote address imformation. More...
#include <Locator.hpp>
Public Types | |
| enum class | LocatorKind : int32_t { INVALID = -1 , RESERVED = 0 , UDPv4 = 1 , UDPv6 = 2 , CUSTOM = INT32_MAX } |
Locator.kind values reserved for known transport types. More... | |
| using | IPv4 = memory::container::Array< uint8_t, 4 > |
| Type for IPv4 address. More... | |
| using | IPv6 = memory::container::Array< uint8_t, ADDRESS_SIZE > |
| Type for IPv6 address. More... | |
Public Member Functions | |
| ReturnCode | get_ipv4 (IPv4 &ipv4) const noexcept |
| Getter in Locator::IPv4 format. More... | |
Static Public Member Functions | |
| static Locator | from_ipv4 (const IPv4 &locator_ipv4, uint32_t locator_port) noexcept |
| Get Locator from IPv4 address. More... | |
Public Attributes | |
| LocatorKind | kind |
| Kind of locator. More... | |
| uint32_t | port |
| Net port value. More... | |
| memory::container::Array< uint8_t, ADDRESS_SIZE > | address |
| Net address, size compatible with IPV4 and IPV6. More... | |
Static Public Attributes | |
| constexpr static uint32_t | ADDRESS_SIZE = 16 |
| Size of locator address octect array. More... | |
| constexpr static uint32_t | ADDRESS_IPV4_POS_1 = 12 |
| Address position of first IPv4 octect. More... | |
| constexpr static uint32_t | ADDRESS_IPV4_POS_2 = 13 |
| Address position of second IPv4 octect. More... | |
| constexpr static uint32_t | ADDRESS_IPV4_POS_3 = 14 |
| Address position of third IPv4 octect. More... | |
| constexpr static uint32_t | ADDRESS_IPV4_POS_4 = 15 |
| Address position of fourth IPv4 octect. More... | |
| static constexpr uint32_t | CDR_SERIALIZED_SIZE |
| CDR serialized size. More... | |
Stores remote address imformation.
| using eprosima::safedds::transport::Locator::IPv4 = memory::container::Array<uint8_t, 4> |
Type for IPv4 address.
| using eprosima::safedds::transport::Locator::IPv6 = memory::container::Array<uint8_t, ADDRESS_SIZE> |
Type for IPv6 address.
|
strong |
Locator.kind values reserved for known transport types.
| Enumerator | |
|---|---|
| INVALID | |
| RESERVED | |
| UDPv4 | |
| UDPv6 | |
| CUSTOM | |
|
noexcept |
| memory::container::Array<uint8_t, ADDRESS_SIZE> eprosima::safedds::transport::Locator::address |
Net address, size compatible with IPV4 and IPV6.
|
staticconstexpr |
Address position of first IPv4 octect.
|
staticconstexpr |
Address position of second IPv4 octect.
|
staticconstexpr |
Address position of third IPv4 octect.
|
staticconstexpr |
Address position of fourth IPv4 octect.
|
staticconstexpr |
Size of locator address octect array.
|
staticconstexpr |
CDR serialized size.
| LocatorKind eprosima::safedds::transport::Locator::kind |
Kind of locator.
| uint32_t eprosima::safedds::transport::Locator::port |
Net port value.