Namespaces | |
| namespace | detail |
Classes | |
| struct | HostCode |
Enumerations | |
| enum class | NodeType { bot , hub , desktop , gateway , rpicam } |
| enum class | Network { wlan , fleet_vpn , vfleet_vpn , cloudhub_vpn , cloudhub_eth , vfleet_eth , vfleet_wlan , vpc } |
| enum class | IPVersion { ipv4 , ipv6 } |
Functions | |
| std::string | node_type_to_string (NodeType node) |
| NodeType | node_type_from_string (const std::string &s) |
| std::string | network_to_string (Network net) |
| Network | network_from_string (const std::string &s) |
| std::pair< int, int > | node_id_range (NodeType node) |
| void | validate_fleet_id (int fleet_id) |
| void | validate_node_id (NodeType node, int node_id) |
| bool | is_ipv4_fleet (int fleet_id) |
| IPVersion | ip_version (int fleet_id, Network net) |
| std::string | ipv4_addr (int fleet_id, Network net, NodeType node, int node_id) |
| std::string | ipv4_net (int fleet_id, Network net) |
| std::string | ipv6_addr (int fleet_id, Network net, NodeType node, int node_id, const std::string &ipv6_base_str="") |
| std::string | ipv6_net (int fleet_id, Network net, const std::string &ipv6_base_str="") |
| std::string | addr (int fleet_id, Network net, NodeType node, int node_id) |
| HostCode | parse_host_code (const std::string &host_code, int default_fleet_id=-1) |
| std::string | host_code_addr (const HostCode &host, IPVersion version) |
| std::string | host_code_addr (const HostCode &host) |
| std::string | host_code_to_addr (const std::string &host_code, HostCode *parsed=nullptr) |
Variables | |
| constexpr int | bot_id_min = 0 |
| constexpr int | bot_id_max = 150 |
| constexpr int | hub_id_min = 0 |
| constexpr int | hub_id_max = 30 |
| constexpr int | desktop_id_min = 1 |
| constexpr int | desktop_id_max = 9 |
| constexpr int | gateway_id_min = 0 |
| constexpr int | gateway_id_max = 0 |
| constexpr int | rpicam_id_min = 0 |
| constexpr int | rpicam_id_max = 49 |
| constexpr int | fleet_id_min = 0 |
| constexpr int | fleet_id_max = 4000 |
| constexpr int | fleet_id_ipv4_max = 250 |
| constexpr int | vfleet_wlan_ipv4_octet = 253 |
| constexpr int | cloudhub_id = 30 |
| constexpr int | iridium_id = 25 |
| constexpr const char * | host_code_format_msg |
|
strong |
|
strong |
|
strong |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
constexpr |