libfilezilla
iputils.hpp
Go to the documentation of this file.
00001 #ifndef LIBFILEZILLA_IPUTILS_HEADER
00002 #define LIBFILEZILLA_IPUTILS_HEADER
00003 
00004 #include "libfilezilla.hpp"
00005 
00010 namespace fz {
00011 
00018 std::string FZ_PUBLIC_SYMBOL get_ipv6_long_form(std::string const& short_address);
00019 std::wstring FZ_PUBLIC_SYMBOL get_ipv6_long_form(std::wstring const& short_address);
00020 
00037 bool FZ_PUBLIC_SYMBOL is_routable_address(std::string const& address);
00038 bool FZ_PUBLIC_SYMBOL is_routable_address(std::wstring const& address);
00039 
00040 enum class address_type
00041 {
00042     unknown,
00043     ipv4,
00044     ipv6
00045 };
00046 
00048 address_type FZ_PUBLIC_SYMBOL get_address_type(std::string const& address);
00049 address_type FZ_PUBLIC_SYMBOL get_address_type(std::wstring const& address);
00050 
00051 }
00052 
00053 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines