Class Locator_t, uniquely identifies a communication channel for a particular transport. More...
#include <Locator.hpp>
Public Member Functions | |
Locator_t () | |
Default constructor. | |
Locator_t (Locator_t &&loc) | |
Move constructor. | |
Locator_t (const Locator_t &loc) | |
Copy constructor. | |
Locator_t (uint32_t portin) | |
Port constructor. | |
Locator_t (int32_t kindin, uint32_t portin) | |
Kind and port constructor. | |
Locator_t & | operator= (const Locator_t &loc) |
Copy assignment. | |
bool | set_address (const Locator_t &other) |
Set the locator IP address using another locator. | |
octet * | get_address () |
Getter for the locator IP address. | |
octet | get_address (uint16_t field) const |
Getter for a specific field of the locator IP address. | |
void | set_Invalid_Address () |
Automatic setter for setting locator IP address to invalid address (0). | |
Public Attributes | |
int32_t | kind |
Specifies the locator type. | |
uint32_t | port |
Network port. | |
octet | address [16] |
IP address. | |
Class Locator_t, uniquely identifies a communication channel for a particular transport.
For example, an address + port combination in the case of UDP.
|
inline |
Default constructor.
|
inline |
Port constructor.
|
inline |
Kind and port constructor.
|
inline |
Getter for the locator IP address.
|
inline |
Getter for a specific field of the locator IP address.
field | IP address element to be accessed. |
|
inline |
Set the locator IP address using another locator.
other | Locator which IP address is used to set this locator IP address. |
|
inline |
Automatic setter for setting locator IP address to invalid address (0).
octet address[16] |
IP address.
int32_t kind |
Specifies the locator type.
Valid values are:
LOCATOR_KIND_UDPv4
LOCATOR_KIND_UDPv6
LOCATOR_KIND_TCPv4
LOCATOR_KIND_TCPv6
LOCATOR_KIND_SHM
uint32_t port |
Network port.