High performance C++ framework for concurrent servers
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
seastar::net::inet_address Class Reference

Public Types

enum class  family : sa_family_t { INET = AF_INET , INET6 = AF_INET6 }

Public Member Functions

 inet_address (family) noexcept
 inet_address (::in_addr i) noexcept
 inet_address (::in6_addr i, uint32_t scope=invalid_scope) noexcept
 inet_address (const sstring &)
 inet_address (inet_address &&) noexcept=default
 inet_address (const inet_address &) noexcept=default
 inet_address (const ipv4_address &) noexcept
 inet_address (const ipv6_address &, uint32_t scope=invalid_scope) noexcept
ipv4_address as_ipv4_address () const
ipv6_address as_ipv6_address () const noexcept
inet_addressoperator= (const inet_address &) noexcept=default
bool operator== (const inet_address &) const noexcept
family in_family () const noexcept
bool is_ipv6 () const noexcept
bool is_ipv4 () const noexcept
size_t size () const noexcept
const void * data () const noexcept
uint32_t scope () const noexcept
 operator::in_addr () const
 operator::in6_addr () const noexcept
 operator ipv6_address () const noexcept
future< sstring > hostname () const
future< std::vector< sstring > > aliases () const

Static Public Member Functions

static future< inet_addressfind (const sstring &)
static future< inet_addressfind (const sstring &, family)
static future< std::vector< inet_address > > find_all (const sstring &)
static future< std::vector< inet_address > > find_all (const sstring &, family)
static std::optional< inet_addressparse_numerical (const sstring &)

Static Public Attributes

static constexpr uint32_t invalid_scope = std::numeric_limits<uint32_t>::max()

The documentation for this class was generated from the following file: