Functions | |
| std::string | resolve_hostname (const std::string &hostname) |
| Resolve hostname to IPv4 address. | |
| std::string | resolve_hostname_v6 (const std::string &hostname) |
| Resolve hostname to IPv6 address. | |
| bool | is_valid_ipv4 (const std::string &ip_str) |
| Check if a string is a valid IPv4 address. | |
| bool | is_valid_ipv6 (const std::string &ip_str) |
| Check if a string is a valid IPv6 address. | |
| bool | is_hostname (const std::string &str) |
| Check if a string is a hostname (not an IP address) | |
| std::vector< std::string > | get_local_interface_addresses () |
| Get all local network interface addresses (IPv4 and IPv6) | |
| std::vector< std::string > librats::network_utils::get_local_interface_addresses | ( | ) |
Get all local network interface addresses (IPv4 and IPv6)
| bool librats::network_utils::is_hostname | ( | const std::string & | str | ) |
Check if a string is a hostname (not an IP address)
| str | The string to check |
| bool librats::network_utils::is_valid_ipv4 | ( | const std::string & | ip_str | ) |
Check if a string is a valid IPv4 address.
| ip_str | The string to validate |
| bool librats::network_utils::is_valid_ipv6 | ( | const std::string & | ip_str | ) |
Check if a string is a valid IPv6 address.
| ip_str | The string to validate |
| std::string librats::network_utils::resolve_hostname | ( | const std::string & | hostname | ) |
Resolve hostname to IPv4 address.
| hostname | The hostname to resolve (can be hostname or IP address) |
| std::string librats::network_utils::resolve_hostname_v6 | ( | const std::string & | hostname | ) |
Resolve hostname to IPv6 address.
| hostname | The hostname to resolve (can be hostname or IPv6 address) |