The server connection description class. More...
#include <slamtec_remote_objects.hxx>
Public Member Functions | |
SDKServerConnectionDesc (const slamtec_aurora_sdk_server_connection_info_t &info) | |
Create the server connection description with a server connection info structure. More... | |
SDKServerConnectionDesc (const SDKServerConnectionDesc &other) | |
SDKServerConnectionDesc (const std::vector< SDKConnectionInfo > &src) | |
SDKServerConnectionDesc (const char *ip, int port=SLAMTEC_AURORA_SDK_REMOTE_SERVER_DEFAULT_PORT, const char *proto=SLAMTEC_AURORA_SDK_REMOTE_SERVER_DEFAULT_PROTOCOL) | |
Create the server connection description with one connection option with IP address, port and protocol. More... | |
SDKServerConnectionDesc & | operator= (const SDKServerConnectionDesc &other) |
std::vector< SDKConnectionInfo > | toVector () const |
Convert the server connection description to a vector of connection info. More... | |
SDKServerConnectionDesc & | operator= (const std::vector< SDKConnectionInfo > &src) |
size_t | size () const |
Get the count of the server connection description. More... | |
size_t | capacity () const |
Get the capacity of the connection description this object can hold. More... | |
void | clear () |
Clear the connection description. More... | |
bool | push_back (const slamtec_aurora_sdk_connection_info_t &info) |
Push a connection info to the server connection description. More... | |
void | pop_back () |
Pop a connection info from the server connection description. More... | |
const SDKConnectionInfo & | operator[] (size_t index) const |
Get the connection info at the specified index. More... | |
const SDKConnectionInfo & | at (size_t index) const |
Get the connection info at the specified index. More... | |
Additional Inherited Members | |
![]() | |
slamtec_aurora_sdk_connection_info_t | connection_info [8] |
The connection methods. More... | |
uint32_t | connection_count |
The number of connection methods. More... | |
The server connection description class.
This class is used to store the server connection information.
|
inline |
Create the server connection description with a server connection info structure.
This constructor is used to create a server connection description with a server connection info structure.
[in] | info | The server connection info |
|
inline |
Create the server connection description with one connection option with IP address, port and protocol.
This constructor is used to create a server connection description with IP address, port and protocol.
[in] | ip | The IP address |
[in] | port | The port |
[in] | proto | The protocol |
|
inline |
Get the connection info at the specified index.
This function is used to get the connection info at the specified index.
[in] | index | The index |
|
inline |
Get the capacity of the connection description this object can hold.
This function is used to get the capacity of the connection description this object can hold.
|
inline |
Clear the connection description.
This function is used to clear the connection description.
|
inline |
Get the connection info at the specified index.
This function is used to get the connection info at the specified index.
[in] | index | The index |
|
inline |
Pop a connection info from the server connection description.
This function is used to pop a connection info from the server connection description.
|
inline |
Push a connection info to the server connection description.
This function is used to push a connection info to the server connection description.
[in] | info | The connection info |
|
inline |
Get the count of the server connection description.
This function is used to get the count of the server connection description.
|
inline |
Convert the server connection description to a vector of connection info.
This function is used to convert the server connection description to a vector of connection info.