libfilezilla
Classes | Namespaces | Enumerations | Functions
iputils.hpp File Reference

Various functions to deal with IP address strings. More...

#include "libfilezilla.hpp"
#include <optional>
Include dependency graph for iputils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  network_interface
 

Namespaces

 fz
 The namespace used by libfilezilla.
 

Enumerations

enum class  address_type { unknown , ipv4 , ipv6 , unix }
 

Functions

std::string get_ipv6_long_form (std::string_view const &short_address)
 Given a shortened IPv6 address, returns the full, unshortened address. More...
 
std::wstring get_ipv6_long_form (std::wstring_view const &short_address)
 
bool is_routable_address (std::string_view const &address)
 Tests whether the passed IP address is routable on the public Internet. More...
 
bool is_routable_address (std::wstring_view const &address)
 
address_type get_address_type (std::string_view const &address)
 Gets the type of the passed IP address.
 
address_type get_address_type (std::wstring_view const &address)
 
std::optional< std::vector< network_interface > > get_network_interfaces ()
 

Detailed Description

Various functions to deal with IP address strings.