The connection info class. More...
#include <slamtec_remote_objects.hxx>
Public Member Functions | |
SDKConnectionInfo (const char *ip, int port=SLAMTEC_AURORA_SDK_REMOTE_SERVER_DEFAULT_PORT, const char *proto=SLAMTEC_AURORA_SDK_REMOTE_SERVER_DEFAULT_PROTOCOL) | |
The constructor with IP address, port and protocol. More... | |
SDKConnectionInfo (const SDKConnectionInfo &other) | |
SDKConnectionInfo & | operator= (const SDKConnectionInfo &other) |
SDKConnectionInfo (const slamtec_aurora_sdk_connection_info_t &other) | |
std::string | toLocatorString () const |
Convert the connection info to a locator string. More... | |
bool | fromLocatorString (const char *input) |
Parse the connection info from a locator string. More... | |
Additional Inherited Members | |
![]() | |
char | protocol_type [16] |
The protocol type. More... | |
char | address [64] |
The address. More... | |
uint16_t | port |
The port. More... | |
The connection info class.
This class is used to store the connection information.
|
inline |
The constructor with IP address, port and protocol.
This constructor is used to create a connection info with IP address, port and protocol.
[in] | ip | The IP address |
[in] | port | The port |
[in] | proto | The protocol |
|
inline |
Parse the connection info from a locator string.
This function is used to parse the connection info from a locator string.
The format of the locator string is "[protocol/]ip[:port]".
[in] | input | The locator string |
|
inline |
Convert the connection info to a locator string.
This function is used to convert the connection info to a locator string.
The format of the locator string is "[protocol/]ip[:port]".